]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
pass through server and path args to daemons
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Jun 2009 22:00:10 +0000 (15:00 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Jun 2009 22:00:10 +0000 (15:00 -0700)
scripts/startdaemons.sh

index 053c4f8ee028575dd23cae44c045d676dc1c3794..4e87694fb8a0d335c862c11f08fca2730eb062a7 100755 (executable)
 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