X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fstartdaemons.sh;h=053c4f8ee028575dd23cae44c045d676dc1c3794;hb=7721839efdf3a9b42ac94559425578a2285b042e;hp=8c054417de965b1077a6ba6c939699e1a11ef7a1;hpb=c4d67892751b17856b235182874c3304890dc2c3;p=quix0rs-gnu-social.git diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh index 8c054417de..053c4f8ee0 100755 --- a/scripts/startdaemons.sh +++ b/scripts/startdaemons.sh @@ -1,7 +1,8 @@ #!/bin/sh # Laconica - a distributed open-source microblogging tool -# Copyright (C) 2008, Controlez-Vous, Inc. + +# Copyright (C) 2008, 2009, Control Yourself, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -16,13 +17,15 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -# This program tries to start the daemons for Laconica. Note that the 'maildaemon' needs to run as a mail filter. +# This program tries to start the daemons for Laconica. +# Note that the 'maildaemon' needs to run as a mail filter. + +DIR=`dirname $0` +DAEMONS=`php $DIR/getvaliddaemons.php` -export INSTALLDIR=$1 +for f in $DAEMONS; do -/sbin/start-stop-daemon -S --exec $INSTALLDIR/scripts/xmppdaemon.php -b -m --pidfile=/var/run/xmppdaemon.pid -/sbin/start-stop-daemon -S --exec $INSTALLDIR/scripts/xmppqueuehandler.php -b -m --pidfile=/var/run/xmppqueuehandler.pid -/sbin/start-stop-daemon -S --exec $INSTALLDIR/scripts/publicqueuehandler.php -b -m --pidfile=/var/run/publicqueuehandler.pid -/sbin/start-stop-daemon -S --exec $INSTALLDIR/scripts/xmppconfirmhandler.php -b -m --pidfile=/var/run/xmppconfirmhandler.pid -/sbin/start-stop-daemon -S --exec $INSTALLDIR/scripts/smsqueuehandler.php -b -m --pidfile=/var/run/smsqueuehandler.pid -/sbin/start-stop-daemon -S --exec $INSTALLDIR/scripts/ombqueuehandler.php -b -m --pidfile=/var/run/ombqueuehandler.pid + echo -n "Starting $f..."; + php $DIR/$f + echo "DONE." +done