remove PID-file on TERM.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@17236 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
markus 2009-08-12 14:09:28 +00:00
parent bd5f893390
commit 731e396d00

View File

@ -120,6 +120,7 @@ kill_service() {
PID="/var/run/openvpn-$s.pid"
$SSD -q -p $PID -x $BIN -K -s $S
[ "$S" == "TERM" ] && rm -f "$PID"
}
hup_service() { kill_service "$1" HUP; }