aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
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"