wok-next diff openvpn/stuff/etc/init.d/openvpn-server @ rev 18979
Up tazlito(419)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 14 23:42:02 2016 +0200 (2016-03-14) |
parents | cc6e05d2cb9a |
children | 7f188676b59c |
line diff
1.1 --- a/openvpn/stuff/etc/init.d/openvpn-server Thu Apr 17 14:01:12 2014 +0400 1.2 +++ b/openvpn/stuff/etc/init.d/openvpn-server Mon Mar 14 23:42:02 2016 +0200 1.3 @@ -1,5 +1,5 @@ 1.4 #!/bin/sh 1.5 -# /etc/init.d/rsyncd: Start, stop and restart Rsync deamon on SliTaz, at boot 1.6 +# /etc/init.d/openvpn-server: Start, stop and restart openvpn deamon on SliTaz, at boot 1.7 # time or with the command line. 1.8 # 1.9 # To start daemon at boot time, just put the right name in the $RUN_DAEMONS 1.10 @@ -12,7 +12,7 @@ 1.11 DESC="VPN daemon" 1.12 DAEMON=/usr/sbin/openvpn 1.13 OPTIONS=$OPENVPN_OPTIONS 1.14 -PIDFILE=/var/run/rsyncd.pid 1.15 +PIDFILE=/var/run/openvpn-server.pid 1.16 1.17 checktundevice() { 1.18 if [ ! -e /dev/net/tun ]; then 1.19 @@ -28,6 +28,7 @@ 1.20 fi 1.21 } 1.22 1.23 +[ -d /var/run/openvpn ] || mkdir -p /var/run/openvpn 1.24 case "$1" in 1.25 start) 1.26 checktundevice