summaryrefslogtreecommitdiff
path: root/debian/openvpn.init.d
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2011-12-20 07:21:07 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2012-02-21 15:53:48 +0100
commitcce5120ea81fcf7e65d484496a43ad1f61de831a (patch)
tree7258bf93021183d9910a293a0a25551d86e48b63 /debian/openvpn.init.d
parent3cedd1dd9877a0bae3e69d27c3d1a2fcd98787c0 (diff)
Imported Debian patch 2.2.1-2debian/2.2.1-2
Diffstat (limited to 'debian/openvpn.init.d')
-rw-r--r--debian/openvpn.init.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/openvpn.init.d b/debian/openvpn.init.d
index 2fdf24b..d8e50ae 100644
--- a/debian/openvpn.init.d
+++ b/debian/openvpn.init.d
@@ -65,12 +65,12 @@ start_vpn () {
$DAEMONARG $STATUSARG --cd $CONFIG_DIR \
--config $CONFIG_DIR/$NAME.conf || STATUS=1
- [ "$OMIT_SENDSIGS" -ne 0 ] || ln -s /var/run/openvpn.$NAME.pid /run/sendsigs.omit.d/openvpn.$NAME.pid
+ [ "$OMIT_SENDSIGS" -ne 1 ] || ln -s /var/run/openvpn.$NAME.pid /run/sendsigs.omit.d/openvpn.$NAME.pid
}
stop_vpn () {
kill `cat $PIDFILE` || true
rm -f $PIDFILE
- [ "$OMIT_SENDSIGS" -ne 0 ] || rm -f /run/sendsigs.omit.d/openvpn.$NAME.pid
+ [ "$OMIT_SENDSIGS" -ne 1 ] || rm -f /run/sendsigs.omit.d/openvpn.$NAME.pid
rm -f /var/run/openvpn.$NAME.status 2> /dev/null
}