# This program tries to start the daemons for Laconica.
# Note that the 'maildaemon' needs to run as a mail filter.
-export INSTALLDIR=$1
+DIR=`dirname $0`
+DAEMONS=`php $DIR/getvaliddaemons.php`
-for f in xmppdaemon.php xmppqueuehandler.php publicqueuehandler.php \
- xmppconfirmhandler.php smsqueuehandler.php ombqueuehandler.php; do
-
- php $INSTALLDIR/scripts/$f;
+for f in $DAEMONS; do
+ echo -n "Starting $f...";
+ php $DIR/$f
+ echo "DONE."
done