From 6d9681d3985403b5f6fae6bc6760ad5ed5ac612c Mon Sep 17 00:00:00 2001 From: chimo Date: Sat, 7 Jun 2014 10:34:51 -0400 Subject: [PATCH] stopdaemons.sh: dynamic daemons list Use getvaliddaemons.php instead of the hardcoded list of daemons --- scripts/stopdaemons.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/stopdaemons.sh b/scripts/stopdaemons.sh index f77c789589..35841b64a8 100755 --- a/scripts/stopdaemons.sh +++ b/scripts/stopdaemons.sh @@ -33,9 +33,10 @@ fi SDIR=`dirname $0` DIR=`php $SDIR/getpiddir.php $SITE` -for f in ombhandler smshandler pinghandler queuedaemon \ - twitterhandler facebookhandler imdaemon \ - twitterstatusfetcher synctwitterfriends pluginhandler rsscloudhandler; do +DAEMONS=`php $SDIR/getvaliddaemons.php` + +for f in $DAEMONS; do + f=$(basename $f .php) FILES="$DIR/$f.$ID.pid" -- 2.39.5