summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-06-24 00:45:25 -0700
committerZach Copley <zach@controlyourself.ca>2009-06-24 00:45:25 -0700
commitdfac8e8cd42c8c77a1cfd70b7e6aebd567252fb8 (patch)
treeb964df5ab4cbb4d09ba4848834b1043d2010447b
parentd72a90161b1cb748b58454e4c885b1d789ef3eca (diff)
parentd98ecc760dd8ed3b4d2366aad1c5a36ddf11c710 (diff)
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
* '0.8.x' of git@gitorious.org:laconica/dev: add args to daemons fetch pass through server and path args to daemons
-rwxr-xr-xscripts/startdaemons.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh
index 053c4f8ee..7609abec4 100755
--- a/scripts/startdaemons.sh
+++ b/scripts/startdaemons.sh
@@ -20,12 +20,22 @@
# 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