Re: how to make systemd wait for a process to die?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux