how to make systemd wait for a process to die?

"Jóhann B. Guðmundsson" johannbg at gmail.com
Mon Sep 19 11:39:14 UTC 2011


On 09/19/2011 11:25 AM, Juan Orti Alcaine wrote:
> [Service]
> WorkingDirectory=/var/lib/gogoc
> Type=simple
> EnvironmentFile=-/etc/sysconfig/gogoc
> ExecStart=/usr/bin/gogoc -f /etc/gogoc/gogoc.conf $GOGOC_OPTS
> ExecStop=/bin/kill -s SIGHUP $MAINPID

Try this totally untested instead...

[Service]
WorkingDirectory=/var/lib/gogoc
EnvironmentFile=-/etc/sysconfig/gogoc
ExecStart=/usr/bin/gogoc -f /etc/gogoc/gogoc.conf $GOGOC_OPTS
TimeoutSec=5
KillMode=process
KillSignal=SIGHUP


More information about the devel mailing list