]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
authorZach Copley <zach@controlyourself.ca>
Wed, 24 Jun 2009 07:45:25 +0000 (00:45 -0700)
committerZach Copley <zach@controlyourself.ca>
Wed, 24 Jun 2009 07:45:25 +0000 (00:45 -0700)
* '0.8.x' of git@gitorious.org:laconica/dev:
  add args to daemons fetch
  pass through server and path args to daemons

scripts/startdaemons.sh

index 053c4f8ee028575dd23cae44c045d676dc1c3794..7609abec47044a62981dc121d9ba20e9a6e0df08 100755 (executable)
 # This program tries to start the daemons for Laconica.
 # Note that the 'maildaemon' needs to run as a mail filter.
 
+ARGS=
+
+if [ $# -gt 0 ]; then
+    ARGS="$ARGS -s$1"
+fi
+
+if [ $# -gt 1 ]; then
+    ARGS="$ARGS -p$2"
+fi
+
 DIR=`dirname $0`
-DAEMONS=`php $DIR/getvaliddaemons.php`
+DAEMONS=`php $DIR/getvaliddaemons.php $ARGS`
 
 for f in $DAEMONS; do
 
          echo -n "Starting $f...";
-        php $DIR/$f
+        php $DIR/$f $ARGS
         echo "DONE."
 done