From 263a36ccf900dabf288e3050e2226cc7be6f38cd Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Iniesta Date: Mon, 17 Mar 2014 18:17:01 +0100 Subject: Fix systemd issues --- debian/openvpn.init.d | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'debian/openvpn.init.d') 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 -- cgit v1.2.3