https://bugzilla.novell.com/show_bug.cgi?id=793411 https://bugzilla.novell.com/show_bug.cgi?id=793411#c14 --- Comment #14 from Frederic Crozat <fcrozat@suse.com> 2013-01-30 13:04:02 UTC --- (In reply to comment #13)
Because I was seeing variables replaced only as blanks, I trimmed my test to roughly this:
/etc/sysconfig/spamd :
KLOP=99
/etc/systemd/system/spamd.service :
ExecStart=/usr/local/bin/kk $KLOP
/usr/local/bin/kk :
#!/bin/sh echo $@ >/tmp/list sleep 30
My system is 12.2 + your systemd-44-10.20.1.i586.rpm.
(truncated "ps axfl" display:)
0:00 /bin/sh /usr/local/bin/kk 0:00 \_ sleep 30
The $KLOP is clearly being substituted with blanks.
Because it is incorrect use (check the manpage). You should use: ExecStart=/usr/local/bin/kk ${KLOP} an easier way to check the environment is : strings /proc/<PID>/environ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.