From 7cc6e8dc3254e4e061db822511522634d329c2b3 Mon Sep 17 00:00:00 2001 From: "Kurt J. Bosch" Date: Mon, 11 Jul 2011 16:35:54 +0200 Subject: 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. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') 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 -- cgit v1.2.3