summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/getvaliddaemons.php3
-rwxr-xr-xscripts/stopdaemons.sh2
-rwxr-xr-xscripts/twitterstatusfetcher.php10
3 files changed, 10 insertions, 5 deletions
diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php
index 482e63af7..a10233e69 100755
--- a/scripts/getvaliddaemons.php
+++ b/scripts/getvaliddaemons.php
@@ -44,6 +44,9 @@ if(common_config('xmpp','enabled')) {
if(common_config('memcached','enabled')) {
echo "memcachedqueuehandler.php ";
}
+if(common_config('twitterbridge','enabled')) {
+ echo "twitterstatusfetcher.php ";
+}
echo "ombqueuehandler.php ";
echo "twitterqueuehandler.php ";
echo "facebookqueuehandler.php ";
diff --git a/scripts/stopdaemons.sh b/scripts/stopdaemons.sh
index f6d71eddf..764037e8f 100755
--- a/scripts/stopdaemons.sh
+++ b/scripts/stopdaemons.sh
@@ -25,7 +25,7 @@ DIR=`php $SDIR/getpiddir.php`
for f in jabberhandler ombhandler publichandler smshandler pinghandler \
xmppconfirmhandler xmppdaemon twitterhandler facebookhandler \
- memcachehandler inboxhandler; do
+ memcachehandler inboxhandler twitterstatusfetcher; do
FILES="$DIR/$f.*.pid"
for ff in "$FILES" ; do
diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php
index e8819f665..9dfadc760 100755
--- a/scripts/twitterstatusfetcher.php
+++ b/scripts/twitterstatusfetcher.php
@@ -32,7 +32,7 @@ define('LACONICA', true);
define('MAXCHILDREN', 2);
define('POLL_INTERVAL', 60); // in seconds
-// Uncomment this to get useful console output
+// Uncomment this to get useful logging
define('SCRIPT_DEBUG', true);
require_once(INSTALLDIR . '/lib/common.php');
@@ -45,7 +45,7 @@ class TwitterStatusFetcher extends Daemon
function name()
{
- return 'twitterstatusfetcher';
+ return ('twitterstatusfetcher.generic');
}
function run()
@@ -130,7 +130,9 @@ class TwitterStatusFetcher extends Daemon
' secs before hitting Twitter again.');
}
- sleep(POLL_INTERVAL);
+ if (POLL_INTERVAL > 0) {
+ sleep(POLL_INTERVAL);
+ }
} while (true);
}
@@ -282,7 +284,7 @@ class TwitterStatusFetcher extends Daemon
// XXX: Figure out a better way to link Twitter replies?
$notice->saveReplies();
- // XXX: Do we want to polute our tag cloud with
+ // XXX: Do we want to pollute our tag cloud with
// hashtags from Twitter?
$notice->saveTags();
$notice->saveGroups();