diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-03-17 18:17:01 +0100 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-03-17 18:17:01 +0100 |
commit | 263a36ccf900dabf288e3050e2226cc7be6f38cd (patch) | |
tree | e443c617f1fdd84c105a0cf795b5e34bebc73dce /debian/openvpn.if-up.d | |
parent | d94d10b7a7ceb5367367886eaaf845de6ec8ecee (diff) |
Fix systemd issues
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 |