1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #!/bin/sh
- 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
- echo "Starting $f..."
- php $f $ARGSD
- echo "DONE."
- done
|