From: Evan Prodromou Date: Tue, 23 Jun 2009 22:00:10 +0000 (-0700) Subject: pass through server and path args to daemons X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8588d321201b1713a8b95704e9c6abd39eb80609;p=quix0rs-gnu-social.git pass through server and path args to daemons --- diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh index 053c4f8ee0..4e87694fb8 100755 --- a/scripts/startdaemons.sh +++ b/scripts/startdaemons.sh @@ -23,9 +23,19 @@ DIR=`dirname $0` DAEMONS=`php $DIR/getvaliddaemons.php` +ARGS= + +if [ $# -gt 0 ]; then + ARGS="$ARGS -s$1" +fi + +if [ $# -gt 1 ]; then + ARGS="$ARGS -p$2" +fi + for f in $DAEMONS; do echo -n "Starting $f..."; - php $DIR/$f + php $DIR/$f $ARGS echo "DONE." done