diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-06-25 12:28:56 +0200 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-06-25 12:28:56 +0200 |
commit | 894cae149383cb875c8794ef48fb9c34c1a190b6 (patch) | |
tree | 5ba2b458fe1c1e6dbbc46232287e2f0120c98d1e | |
parent | 1aaf6c6f47f79d989550bec9fcfddd0aa38505ee (diff) |
Remove restart actions, since systemd won't use them
-rwxr-xr-x | debian/openvpn-systemd-helper | 17 |
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 |