summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-23 15:00:10 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-23 15:00:10 -0700
commit8588d321201b1713a8b95704e9c6abd39eb80609 (patch)
treee6b71115f855d42cc9bc51a04afceeba331cf003 /scripts
parent9505ef5bb39875f6090c8ed572391cff415531fd (diff)
pass through server and path args to daemons
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/startdaemons.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh
index 053c4f8ee..4e87694fb 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