summaryrefslogtreecommitdiff
path: root/debian/openvpn-systemd-helper
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2014-06-25 12:28:56 +0200
committerAlberto Gonzalez Iniesta <agi@inittab.org>2014-06-25 12:28:56 +0200
commit894cae149383cb875c8794ef48fb9c34c1a190b6 (patch)
tree5ba2b458fe1c1e6dbbc46232287e2f0120c98d1e /debian/openvpn-systemd-helper
parent1aaf6c6f47f79d989550bec9fcfddd0aa38505ee (diff)
Remove restart actions, since systemd won't use them
Diffstat (limited to 'debian/openvpn-systemd-helper')
-rwxr-xr-xdebian/openvpn-systemd-helper17
1 files changed, 1 insertions, 16 deletions
diff --git a/debian/openvpn-systemd-helper b/debian/openvpn-systemd-helper
index be03932..66b2fb3 100755
--- a/debian/openvpn-systemd-helper
+++ b/debian/openvpn-systemd-helper
@@ -17,8 +17,6 @@
# VPN you want to start on boot
#
-echo "$*" > /tmp/ovpn
-
test $DEBIAN_SCRIPT_DEBUG && set -v -x
DAEMON=/usr/sbin/openvpn
@@ -54,7 +52,6 @@ else
done
fi
-
case "$1" in
start)
for NAME in $VPNS ; do
@@ -80,20 +77,8 @@ reload)
fi
done
;;
-restart)
- for NAME in $VPNS ; do
- systemctl restart openvpn@${NAME}
- [ "$?" -ne 0 ] && { echo "Error stopping $NAME"; STATUS=1; }
- done
- ;;
-cond-restart|soft-restart)
- for NAME in $VPNS ; do
- systemctl condrestart openvpn@${NAME}
- [ "$?" -ne 0 ] && { echo "Error stopping $NAME"; STATUS=1; }
- done
- ;;
*)
- echo "Usage: $0 {start|stop|reload|restart|cond-restart}" >&2
+ echo "Usage: $0 {start|stop|reload}" >&2
exit 1
;;
esac