summaryrefslogtreecommitdiff
path: root/scripts/startdaemons.sh
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-25 06:57:00 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-25 06:57:00 +0000
commite872ca5bfa01f8f3c0142d7a618d8069690d6a23 (patch)
tree35b98251728b88155ad69c4dc84b8eb1f22d32bc /scripts/startdaemons.sh
parentfcb43dd7112740284d2c1cb2708ac6a8a135cbdb (diff)
parent246013d984245737983054abf7496aa3879cfc58 (diff)
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'scripts/startdaemons.sh')
-rwxr-xr-xscripts/startdaemons.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh
index a44362b57..9ead20acd 100755
--- a/scripts/startdaemons.sh
+++ b/scripts/startdaemons.sh
@@ -20,23 +20,27 @@
# This program tries to start the daemons for Laconica.
# Note that the 'maildaemon' needs to run as a mail filter.
-ARGS=
+ARGSG=
+ARGSD=
if [ $# -gt 0 ]; then
- ARGS="$ARGS -s$1"
+ ARGSG="$ARGSG -s$1"
+ ID=`echo $1 | sed s/\\\\./_/g`
+ ARGSD="$ARGSD -s$1 -i$ID"
fi
if [ $# -gt 1 ]; then
- ARGS="$ARGS -p$2"
+ ARGSD="$ARGSD -p$2"
+ ARGSG="$ARGSG -p$2"
fi
DIR=`dirname $0`
-DAEMONS=`php $DIR/getvaliddaemons.php $ARGS`
+DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`
for f in $DAEMONS; do
printf "Starting $f...";
- php $DIR/$f $ARGS
+ php $DIR/$f $ARGSD
printf "DONE.\n"
done