pass through server and path args to daemons

This commit is contained in:
Evan Prodromou 2009-06-23 15:00:10 -07:00
parent 9505ef5bb3
commit 8588d32120
1 changed files with 11 additions and 1 deletions

View File

@ -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