]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
different args for pid and daemon scripts
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 25 Jun 2009 02:50:45 +0000 (19:50 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 25 Jun 2009 02:50:45 +0000 (19:50 -0700)
scripts/startdaemons.sh

index 8b7451cd7b38874685101c956fcc4d781502f401..9ead20acd6c0230f0b42af6a24f6cd670404c297 100755 (executable)
 # 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