diff options
Diffstat (limited to 'debian/openvpn.if-up.d')
-rw-r--r-- | debian/openvpn.if-up.d | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/openvpn.if-up.d b/debian/openvpn.if-up.d index a6548a5..feb4d6b 100644 --- a/debian/openvpn.if-up.d +++ b/debian/openvpn.if-up.d @@ -3,6 +3,7 @@ OPENVPN=/usr/sbin/openvpn OPENVPN_INIT=/etc/init.d/openvpn SYSTEMCTL=/bin/systemctl +SYSTEMD=/run/systemd/system if [ ! -x $OPENVPN ]; then exit 0 @@ -11,7 +12,7 @@ fi if [ -n "$IF_OPENVPN" ]; then for vpn in $IF_OPENVPN; do ## check systemd present - if [ -x $SYSTEMCTL ]; then + if [ -d $SYSTEMD ]; then $SYSTEMCTL start openvpn@$vpn else $OPENVPN_INIT start $vpn |