aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-07-11 16:35:54 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-07-12 17:22:39 +0200
commit7cc6e8dc3254e4e061db822511522634d329c2b3 (patch)
treee6779c64dd2e27a334caa76d3de43dae7a8d86b7 /functions
parentbc7f1cd2690ded42cc68f620065c17eaf3140dd4 (diff)
downloadinitscripts-7cc6e8dc3254e4e061db822511522634d329c2b3.tar.xz
functions: Use ck_autostart in stop_all_daemons()
This is just a bit simpler. in_array() should be fixed to be non daemon specific in a later patch.
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 5bfeb77..f564f3d 100644
--- a/functions
+++ b/functions
@@ -272,7 +272,7 @@ stop_all_daemons() {
for daemon in /run/daemons/*; do
[[ -f $daemon ]] || continue
daemon=${daemon##*/}
- in_array "$daemon" "${DAEMONS[@]}" || stop_daemon "$daemon"
+ ck_autostart "$daemon" && stop_daemon "$daemon"
done
# Shutdown daemons in reverse order