mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Workaround for when vpnserver hangs on stop.
This commit is contained in:
parent
8fe51b74cf
commit
a67b4e30b6
@ -40,7 +40,7 @@ start() {
|
|||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo -n $"Stopping $prog: "
|
echo -n $"Stopping $prog: "
|
||||||
$exec stop
|
/usr/bin/timeout 30 $exec stop || /usr/bin/killall -q -9 $prog
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $retval -eq 0 ] && rm -f $lockfile
|
[ $retval -eq 0 ] && rm -f $lockfile
|
||||||
|
Loading…
Reference in New Issue
Block a user