diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-24 19:50:45 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-24 19:50:45 -0700 |
commit | 246013d984245737983054abf7496aa3879cfc58 (patch) | |
tree | 64c7ef76065ca165ff57c84e6563a018d8985852 /scripts/startdaemons.sh | |
parent | 6038420a69096854e386b8e9dcdc5993d7e9af8f (diff) |
different args for pid and daemon scripts
Diffstat (limited to 'scripts/startdaemons.sh')
-rwxr-xr-x | scripts/startdaemons.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh index 8b7451cd7..9ead20acd 100755 --- a/scripts/startdaemons.sh +++ b/scripts/startdaemons.sh @@ -20,24 +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 + ARGSG="$ARGSG -s$1" ID=`echo $1 | sed s/\\\\./_/g` - ARGS="$ARGS -s$1 -i$ID" + 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 |