summaryrefslogtreecommitdiffstats
path: root/src/connections
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-06-11 22:46:45 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-11 22:46:55 +0200
commitea9e2dd8befbb30a49fc5e55a84d1eba876ea495 (patch)
tree4c8b6b2e3f69e85f34bd68c7d0d6bae7ddbed917 /src/connections
parentad711a91917752a887cf99f61e8c23986358671f (diff)
downloadnetctl-ea9e2dd8befbb30a49fc5e55a84d1eba876ea495.tar.gz
netctl-ea9e2dd8befbb30a49fc5e55a84d1eba876ea495.tar.xz
Move more PID files to /run
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src/connections')
-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