FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Mayor Cronjob problem! View next topic
View previous topic
Post new topicReply to topic
Author Message
demz



Joined: 05 Sep 2012
Posts: 9

PostPosted: Thu Sep 27, 2012 3:07 am Reply with quoteBack to top

Okay im getting like hunderds of emails:

/bin/sh: line 1: 9855 Killed /usr/local/bin/php -q -f /home/website/domains/domain.com/public_html/rss2sql.php > /dev/null 2>&1

Seems like the cronjob with the script does not kill itself after a period of time and keeps hanging.. this means that like (i update every 5 minutes) the server has 200 zombie cronjobs from rss2sql.php update script, my hoster kills them now but is pissed @ me.

How to build in a timeout or somewhat in the script if a RSS feed doesn't react? OR is there already??

Thanks!
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Thu Sep 27, 2012 8:37 am Reply with quoteBack to top

You can try editing the rss2sql.php script and enabling a timeout. Look for the following text in the file:

//
// $connectTimeoutLimit allows the limiting the amount of time cURL will
// wait to successfully connect to a remote server. Use with caution,
// a value too small will cause all connections to fail.
//$connectTimeoutLimit = 30;

Remove the '//' on the last line so it will look like this:

//
// $connectTimeoutLimit allows the limiting the amount of time cURL will
// wait to successfully connect to a remote server. Use with caution,
// a value too small will cause all connections to fail.
$connectTimeoutLimit = 30;

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
demz



Joined: 05 Sep 2012
Posts: 9

PostPosted: Thu Sep 27, 2012 8:40 am Reply with quoteBack to top

Okay thanks!
Ill activate it asap!

Thanks!
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme