]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
stopdaemons.sh: dynamic daemons list
authorchimo <chimo@chromic.org>
Sat, 7 Jun 2014 14:34:51 +0000 (10:34 -0400)
committerchimo <chimo@chromic.org>
Sat, 7 Jun 2014 14:34:51 +0000 (10:34 -0400)
Use getvaliddaemons.php instead of the hardcoded list of daemons

scripts/stopdaemons.sh

index f77c789589716e412f6eb272624b2c487f10d8b8..35841b64a85008e8dc509220b3bcbc487fcd271f 100755 (executable)
@@ -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"