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:
parent
bd5f893390
commit
731e396d00
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user