different args for pid and daemon scripts
This commit is contained in:
parent
6038420a69
commit
246013d984
@ -20,24 +20,27 @@
|
|||||||
# This program tries to start the daemons for Laconica.
|
# This program tries to start the daemons for Laconica.
|
||||||
# Note that the 'maildaemon' needs to run as a mail filter.
|
# Note that the 'maildaemon' needs to run as a mail filter.
|
||||||
|
|
||||||
ARGS=
|
ARGSG=
|
||||||
|
ARGSD=
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
|
ARGSG="$ARGSG -s$1"
|
||||||
ID=`echo $1 | sed s/\\\\./_/g`
|
ID=`echo $1 | sed s/\\\\./_/g`
|
||||||
ARGS="$ARGS -s$1 -i$ID"
|
ARGSD="$ARGSD -s$1 -i$ID"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
ARGS="$ARGS -p$2"
|
ARGSD="$ARGSD -p$2"
|
||||||
|
ARGSG="$ARGSG -p$2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIR=`dirname $0`
|
DIR=`dirname $0`
|
||||||
DAEMONS=`php $DIR/getvaliddaemons.php $ARGS`
|
DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`
|
||||||
|
|
||||||
for f in $DAEMONS; do
|
for f in $DAEMONS; do
|
||||||
|
|
||||||
printf "Starting $f...";
|
printf "Starting $f...";
|
||||||
php $DIR/$f $ARGS
|
php $DIR/$f $ARGSD
|
||||||
printf "DONE.\n"
|
printf "DONE.\n"
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user