summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connections/openvpn4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connections/openvpn b/src/connections/openvpn
index 8a7be44..ded6bf5 100644
--- a/src/connections/openvpn
+++ b/src/connections/openvpn
@@ -6,7 +6,7 @@
openvpn_up() {
load_profile "$1"
[[ -z "$OVPN_CONFIG" ]] && OVPN_CONFIG="/etc/openvpn/openvpn.conf"
- [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/var/run/openvpn-$1.pid"
+ [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/run/openvpn-$1.pid"
[[ -z "$OVPN_FLAGS" ]] && OVPN_FLAGS=""
OVPN_CONF_DIR="`dirname $OVPN_CONFIG`"
@@ -41,7 +41,7 @@ openvpn_up() {
openvpn_down() {
load_profile "$1"
- [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/var/run/openvpn-$1.pid"
+ [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/run/openvpn-$1.pid"
kill $(head -1 $OVPN_PID_FILE)
rm $OVPN_PID_FILE