You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Unit]
Description=Env test
[Service]
Environment="MULTILINE=line1 \
line2"
ExecStart=/usr/bin/env
[Install]
WantedBy=default.target
Output logged after starting this service:
...
OLDPWD=/root
MULTILINE=line1
MAINPID=
...
A quick test with additional logging in read_env_part (logg.info("env part: %s", env_part)) shows that the value is read correctly, and the only issue is with the way that read_env_part interprets this data:
I am trying to use systemctl3.py with services that need long environment variables with newlines, and I noticed that newlines aren't supported.
Example from my service:
A shorter standalone test case:
Output logged after starting this service:
A quick test with additional logging in
read_env_part
(logg.info("env part: %s", env_part)
) shows that the value is read correctly, and the only issue is with the way thatread_env_part
interprets this data:The text was updated successfully, but these errors were encountered: