SITE=
ID="*"
+# stopdaemons.sh [server [path]]
+
if [ $# -gt 0 ] ; then
SITENAME="$1"
SITE="-s$SITENAME"
fi
SDIR=`dirname $0`
-DIR=`php $SDIR/getpiddir.php $SITE`
+DIR=`$SDIR/getpiddir.php $SITE`
-DAEMONS=`php $SDIR/getvaliddaemons.php $ARGSG`
+DAEMONS=`$SDIR/getvaliddaemons.php $ARGSG`
for f in $DAEMONS; do
f=$(basename $f .php)