have to provide full path for daemons

This commit is contained in:
Evan Prodromou 2009-09-21 14:42:20 -04:00
parent 98924a80d7
commit f6c70ea327
2 changed files with 12 additions and 12 deletions

View File

@ -38,23 +38,23 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
$daemons = array(); $daemons = array();
if(common_config('xmpp','enabled')) { if(common_config('xmpp','enabled')) {
$daemons[] = 'xmppdaemon.php'; $daemons[] = INSTALLDIR.'/scripts/xmppdaemon.php';
$daemons[] = 'jabberqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/jabberqueuehandler.php';
$daemons[] = 'publicqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/publicqueuehandler.php';
$daemons[] = 'xmppconfirmhandler.php'; $daemons[] = INSTALLDIR.'/scripts/xmppconfirmhandler.php';
} }
if(common_config('twitterbridge','enabled')) { if(common_config('twitterbridge','enabled')) {
$daemons[] = 'twitterstatusfetcher.php'; $daemons[] = INSTALLDIR.'/scripts/twitterstatusfetcher.php';
} }
$daemons[] = 'ombqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/ombqueuehandler.php';
if (common_config('twitter', 'enabled')) { if (common_config('twitter', 'enabled')) {
$daemons[] = 'twitterqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/twitterqueuehandler.php';
$daemons[] = 'synctwitterfriends.php'; $daemons[] = INSTALLDIR.'/scripts/synctwitterfriends.php';
} }
$daemons[] = 'facebookqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/facebookqueuehandler.php';
$daemons[] = 'pingqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/pingqueuehandler.php';
if (common_config('sms', 'enabled')) { if (common_config('sms', 'enabled')) {
$daemons[] = 'smsqueuehandler.php'; $daemons[] = INSTALLDIR.'/scripts/smsqueuehandler.php';
} }
if (Event::handle('GetValidDaemons', array(&$daemons))) { if (Event::handle('GetValidDaemons', array(&$daemons))) {

View File

@ -40,7 +40,7 @@ DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG`
for f in $DAEMONS; do for f in $DAEMONS; do
printf "Starting $f..."; printf "Starting $f...";
php $DIR/$f $ARGSD php $f $ARGSD
printf "DONE.\n" printf "DONE.\n"
done done