aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorSebastien Luttringer <seblu@seblu.net>2011-04-10 03:16:39 +0200
committerTom Gundersen <teg@jklm.no>2011-04-13 17:40:13 +0800
commit28fce838117d0db1008b8b1207829b00b62570ef (patch)
tree6800fa373f3754ea52c1d3d93374b4c9d196a8c9 /functions
parent643bfecc67504d3765307534307c818441553081 (diff)
downloadinitscripts-28fce838117d0db1008b8b1207829b00b62570ef.tar.xz
Move /var/run/daemons to /run/daemons
Signed-off-by: Sebastien Luttringer <seblu@seblu.net> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'functions')
-rw-r--r--functions10
1 files changed, 5 insertions, 5 deletions
diff --git a/functions b/functions
index 090f099..e4d46d0 100644
--- a/functions
+++ b/functions
@@ -158,16 +158,16 @@ in_array() {
# daemons:
add_daemon() {
- [[ -d /var/run/daemons ]] || /bin/mkdir -p /var/run/daemons
- > /var/run/daemons/"$1"
+ [[ -d /run/daemons ]] || /bin/mkdir -p /run/daemons
+ > /run/daemons/"$1"
}
rm_daemon() {
- /bin/rm -f /var/run/daemons/"$1"
+ /bin/rm -f /run/daemons/"$1"
}
ck_daemon() {
- [[ ! -f /var/run/daemons/$1 ]]
+ [[ ! -f /run/daemons/$1 ]]
}
have_daemon() {
@@ -216,7 +216,7 @@ kill_everything() {
# $1 = where we are being called from.
# This is used to determine which hooks to run.
# Find daemons NOT in the DAEMONS array. Shut these down first
- for daemon in /var/run/daemons/*; do
+ for daemon in /run/daemons/*; do
[[ -f $daemon ]] || continue
daemon=${daemon##*/}
in_array "$daemon" "${DAEMONS[@]}" || stop_daemon "$daemon"