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" <[email protected]>

>
> 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
> [email protected]
> https://admin.fedoraproject.org/mailman/listinfo/devel
>
-- 
devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to