Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This program tries to start the daemons for StatusNet.
- # Note that the 'maildaemon' needs to run as a mail filter.
- ARGSG=
- ARGSD=
- if [ $# -gt 0 ]; then
- ARGSG="$ARGSG -s$1"
- ID=`echo $1 | sed s/\\\\./_/g`
- ARGSD="$ARGSD -s$1 -i$ID"
- fi
- if [ $# -gt 1 ]; then
- ARGSD="$ARGSD -p$2"
- ARGSG="$ARGSG -p$2"
- fi
- DIR=`dirname $0`
- DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`
- for f in $DAEMONS; do
- printf "Starting $f...";
- php $f $ARGSD
- printf "DONE.\n"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement