Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/centos
diff options
context:
space:
mode:
authorDexter Ang <thepoch@users.noreply.github.com>2014-03-03 11:54:21 +0400
committerDexter Ang <thepoch@users.noreply.github.com>2014-03-03 11:54:21 +0400
commita67b4e30b68530909eaf2e2a420a623103557e1e (patch)
tree00e1ace153c585e0bc3ef76841a92dd959c3106e /centos
parent8fe51b74cf8241640bf1a608e6b3252e37a66f79 (diff)
Workaround for when vpnserver hangs on stop.
Diffstat (limited to 'centos')
-rw-r--r--centos/SOURCES/init.d/vpnserver2
1 files changed, 1 insertions, 1 deletions
diff --git a/centos/SOURCES/init.d/vpnserver b/centos/SOURCES/init.d/vpnserver
index 6807c892..950be63e 100644
--- a/centos/SOURCES/init.d/vpnserver
+++ b/centos/SOURCES/init.d/vpnserver
@@ -40,7 +40,7 @@ start() {
stop() {
echo -n $"Stopping $prog: "
- $exec stop
+ /usr/bin/timeout 30 $exec stop || /usr/bin/killall -q -9 $prog
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile