[arch-projects] [initscripts] [PATCH 1/3] functions: Use ck_autostart in stop_all_daemons()

Kurt J. Bosch kjb-temp-2009 at alpenjodel.de
Mon Jul 11 11:34:40 EDT 2011


This is just a bit simpler.
in_array() should be fixed to be non daemon specific in a later patch.
---
 functions |    2 +-
 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
-- 
1.7.1



More information about the arch-projects mailing list