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?<br>
<br>This is the way I have it:<br><br>[Service]<br>WorkingDirectory=/var/lib/gogoc<br>Type=simple<br>EnvironmentFile=-/etc/sysconfig/gogoc<br>ExecStart=/usr/bin/gogoc -f /etc/gogoc/gogoc.conf $GOGOC_OPTS<br>TimeoutSec=30<br>
KillSignal=SIGHUP<br><br><div class="gmail_quote">2011/9/19 &quot;Jóhann B. Guðmundsson&quot; <span dir="ltr">&lt;<a href="mailto:johannbg@gmail.com">johannbg@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
<br>
</div>Try this totally untested instead...<br>
<div class="im"><br>
[Service]<br>
WorkingDirectory=/var/lib/gogoc<br>
</div><div class="im">EnvironmentFile=-/etc/sysconfig/gogoc<br>
ExecStart=/usr/bin/gogoc -f /etc/gogoc/gogoc.conf $GOGOC_OPTS<br>
</div>TimeoutSec=5<br>
KillMode=process<br>
KillSignal=SIGHUP<br>
<font color="#888888">--<br>
devel mailing list<br>
<a href="mailto:devel@lists.fedoraproject.org">devel@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/devel" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/devel</a><br>
</font></blockquote></div><br>