From 894cae149383cb875c8794ef48fb9c34c1a190b6 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Iniesta Date: Wed, 25 Jun 2014 12:28:56 +0200 Subject: Remove restart actions, since systemd won't use them --- debian/openvpn-systemd-helper | 17 +---------------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3