diff options
Diffstat (limited to 'debian/openvpn.init.d')
-rw-r--r-- | debian/openvpn.init.d | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/openvpn.init.d b/debian/openvpn.init.d index e465c85..8507ace 100644 --- a/debian/openvpn.init.d +++ b/debian/openvpn.init.d @@ -58,8 +58,6 @@ start_vpn () { STATUSARG="--status /run/openvpn/$NAME.status $STATUSREFRESH" fi - mkdir -p /run/openvpn - # tun using the "subnet" topology confuses the routing code that wrongly # emits ICMP redirects for client to client communications SAVED_DEFAULT_SEND_REDIRECTS=0 @@ -110,6 +108,11 @@ case "$1" in start) log_daemon_msg "Starting $DESC" + # first create /run directory so it's present even + # when no VPN are autostarted by this script, but later + # by systemd openvpn@.service + mkdir -p /run/openvpn + # autostart VPNs if test -z "$2" ; then # check if automatic startup is disabled by AUTOSTART=none |