how to make systemd wait for a process to die?
Juan Orti Alcaine
j.orti.alcaine at gmail.com
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:
[Service]
WorkingDirectory=/var/lib/gogoc
Type=simple
EnvironmentFile=-/etc/sysconfig/gogoc
ExecStart=/usr/bin/gogoc -f /etc/gogoc/gogoc.conf $GOGOC_OPTS
TimeoutSec=30
KillSignal=SIGHUP
2011/9/19 "Jóhann B. Guðmundsson" <johannbg at gmail.com>
>
> 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 lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/devel/attachments/20110919/e53e5dc5/attachment.html
More information about the devel
mailing list