aboutsummaryrefslogtreecommitdiffstats
path: root/mageia/usr/sbin/vpn-start
diff options
context:
space:
mode:
Diffstat (limited to 'mageia/usr/sbin/vpn-start')
-rwxr-xr-xmageia/usr/sbin/vpn-start6
1 files changed, 3 insertions, 3 deletions
diff --git a/mageia/usr/sbin/vpn-start b/mageia/usr/sbin/vpn-start
index 49a02cf1..18cef8d2 100755
--- a/mageia/usr/sbin/vpn-start
+++ b/mageia/usr/sbin/vpn-start
@@ -9,7 +9,7 @@ fi
DIR=/etc/sysconfig/network-scripts/vpn.d/"$TYPE"
CONFIG="$DIR"/"$NAME".conf
-PID=/var/run/"$TYPE"-"$NAME".pid
+PID=/run/"$TYPE"-"$NAME".pid
. /etc/init.d/functions
@@ -24,10 +24,10 @@ case $TYPE in
exit 1
;;
openvpn)
- action "Starting VPN connection: " openvpn --user openvpn --group openvpn --daemon --writepid $PID --config $CONFIG --cd $DIR $*
+ action "Starting VPN connection: " openvpn --user openvpn --group openvpn --daemon --writepid "$PID" --config "$CONFIG" --cd "$DIR" $*
;;
vpnc)
- action "Starting VPN connection: " /usr/sbin/vpnc $CONFIG --pid-file $PID $*
+ action "Starting VPN connection: " /usr/sbin/vpnc "$CONFIG" --pid-file "$PID" $*
;;
*)
gprintf "Connection type $TYPE is not supported.\n";