how to make systemd wait for a process to die?

Juan Orti Alcaine j.orti.alcaine at
Mon Sep 19 12:25:37 UTC 2011

It works. I deleted the line KillMode because it has some child processes I
want to shut down even if the script times out. I have increased the timeout
to 30 secs because I noticed sometimes it takes a lot longer to close the
tunnel. Is there any problem about this?

This is the way I have it:

ExecStart=/usr/bin/gogoc -f /etc/gogoc/gogoc.conf $GOGOC_OPTS

2011/9/19 "Jóhann B. Guðmundsson" <johannbg at>

> 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
> --
> devel mailing list
> devel at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the devel mailing list