summaryrefslogtreecommitdiff
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
parent643bfecc67504d3765307534307c818441553081 (diff)
Move /var/run/daemons to /run/daemons
Signed-off-by: Sebastien Luttringer <seblu@seblu.net> Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xadjtime.cron2
-rw-r--r--functions10
2 files changed, 6 insertions, 6 deletions
diff --git a/adjtime.cron b/adjtime.cron
index dac8cea..8a894f1 100755
--- a/adjtime.cron
+++ b/adjtime.cron
@@ -10,6 +10,6 @@ case $HARDWARECLOCK in
*) HWCLOCK_PARAMS="";;
esac
-if [[ $HWCLOCK_PARAMS && -f /var/run/daemons/hwclock ]]; then
+if [[ $HWCLOCK_PARAMS && -f /run/daemons/hwclock ]]; then
/sbin/hwclock $HWCLOCK_PARAMS
fi
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"