diff options
author | Evan Prodromou <evan@status.net> | 2009-09-21 14:42:20 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-21 14:42:20 -0400 |
commit | f6c70ea327a83f77acbca14bca32f262e6b3a098 (patch) | |
tree | 4ef76ebee65692ace3707ba25b81694555a9e475 | |
parent | 98924a80d776107a734b44027dda18094b1f093f (diff) |
have to provide full path for daemons
-rwxr-xr-x | scripts/getvaliddaemons.php | 22 | ||||
-rwxr-xr-x | scripts/startdaemons.sh | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index 92edacfd3..684799a0e 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -38,23 +38,23 @@ require_once INSTALLDIR.'/scripts/commandline.inc'; $daemons = array(); if(common_config('xmpp','enabled')) { - $daemons[] = 'xmppdaemon.php'; - $daemons[] = 'jabberqueuehandler.php'; - $daemons[] = 'publicqueuehandler.php'; - $daemons[] = 'xmppconfirmhandler.php'; + $daemons[] = INSTALLDIR.'/scripts/xmppdaemon.php'; + $daemons[] = INSTALLDIR.'/scripts/jabberqueuehandler.php'; + $daemons[] = INSTALLDIR.'/scripts/publicqueuehandler.php'; + $daemons[] = INSTALLDIR.'/scripts/xmppconfirmhandler.php'; } 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')) { - $daemons[] = 'twitterqueuehandler.php'; - $daemons[] = 'synctwitterfriends.php'; + $daemons[] = INSTALLDIR.'/scripts/twitterqueuehandler.php'; + $daemons[] = INSTALLDIR.'/scripts/synctwitterfriends.php'; } -$daemons[] = 'facebookqueuehandler.php'; -$daemons[] = 'pingqueuehandler.php'; +$daemons[] = INSTALLDIR.'/scripts/facebookqueuehandler.php'; +$daemons[] = INSTALLDIR.'/scripts/pingqueuehandler.php'; if (common_config('sms', 'enabled')) { - $daemons[] = 'smsqueuehandler.php'; + $daemons[] = INSTALLDIR.'/scripts/smsqueuehandler.php'; } if (Event::handle('GetValidDaemons', array(&$daemons))) { diff --git a/scripts/startdaemons.sh b/scripts/startdaemons.sh index 298162673..5fb75414d 100755 --- a/scripts/startdaemons.sh +++ b/scripts/startdaemons.sh @@ -40,7 +40,7 @@ DAEMONS=`php $DIR/getvaliddaemons.php $ARGSG` for f in $DAEMONS; do printf "Starting $f..."; - php $DIR/$f $ARGSD + php $f $ARGSD printf "DONE.\n" done |