diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-11 22:46:45 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-11 22:46:55 +0200 |
commit | ea9e2dd8befbb30a49fc5e55a84d1eba876ea495 (patch) | |
tree | 4c8b6b2e3f69e85f34bd68c7d0d6bae7ddbed917 | |
parent | ad711a91917752a887cf99f61e8c23986358671f (diff) | |
download | netctl-ea9e2dd8befbb30a49fc5e55a84d1eba876ea495.tar.gz netctl-ea9e2dd8befbb30a49fc5e55a84d1eba876ea495.tar.xz |
Move more PID files to /run
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
-rw-r--r-- | src/connections/openvpn | 4 | ||||
-rwxr-xr-x | wpa_actiond/netcfg-wpa_actiond | 4 |
2 files changed, 4 insertions, 4 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 diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond index 4abc5ab..3f338c6 100755 --- a/wpa_actiond/netcfg-wpa_actiond +++ b/wpa_actiond/netcfg-wpa_actiond @@ -17,7 +17,7 @@ case $1 in interface=$2 [[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface" stop_wpa $2 - kill $(cat "/var/run/wpa_actiond_${2}.pid") + kill $(cat "/run/wpa_actiond_${2}.pid") if [[ -n "$RFKILL" ]]; then set_rf_state "$interface" disabled $RFKILL_NAME || exit $? fi @@ -25,7 +25,7 @@ case $1 in ;; *) interface=$1; shift - PIDFILE="/var/run/wpa_actiond_${interface}.pid" + PIDFILE="/run/wpa_actiond_${interface}.pid" EXTRA_AUTOWIFI_OPTIONS="$*" ;; esac |