Open GoogleCodeExporter opened 9 years ago
Original comment by hel...@google.com
on 9 Dec 2014 at 8:14
systemd doesn't seem to take additional arguments.
I tested the following means using a temporary file as one of solutions.
* modify /usr/lib/systemd/system/ganeti-wconfd.service
...
[Service]
Type = simple
User = root
Group = root
EnvironmentFile = -/var/lib/ganeti/ganeti-wconfd.options
ExecStart = /usr/sbin/ganeti-wconfd -f $OPTIONS
Restart = on-failure
SuccessExitStatus = 0 11
...
* modify /usr/lib64/ganeti/daemon-util
...
if use_systemctl; then
echo "OPTIONS=$@" > /var/lib/ganeti/${name}.options
systemctl start "${name}.service"
ret=$?
rm -f /var/lib/ganeti/${name}.options
return $ret
fi
...
Original comment by jun.futa...@gmail.com
on 9 Dec 2014 at 6:09
Original comment by pud...@google.com
on 6 May 2015 at 2:00
Original issue reported on code.google.com by
jhujh...@gmail.com
on 8 Dec 2014 at 10:21