This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

timeout/re-connection

General support and discussion of Eggdrop bots.
Post Reply
N
NewzLive
Voice
Posts: 4
Joined: Wed Jul 04, 2007 10:31 am

timeout/re-connection

Post by NewzLive »

Hi - sometimes when my bot times out, the pid dosn't get erased and therefore the crontab can't restart it.
Is there a way to make sure the pid disappears everytime the bot gets cut off?
Thanks.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Just because your Eggdrop timed out from the IRC server, it doesn't mean that Eggdrop needs to be restarted. It'll automatically realize that it's not connected to the server and try to jump or reconnect.
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Note that you'll need to have the check-stoned setting in your config set to 1 (which it is by default).
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

There is one exception to what's been mentioned above:
If you are running some very poorly written script that takes very long time to complete, this will render your bot unresponsive (such as running pisg through your eggdrop with some scripts, etc). In this case the options are either to wait for the script to complete, or kill/restart.

Back to the request tho, I did write a watchdog-capable replacement for the botchk/autobotchk crontab script a long time ago. If your bot is disconnecting due to a script freezing your eggie, this should do what you ask for. Still, you'd be better off finding, and fixing, the cause for the freeze. It will, however, not take any actions if your eggdrop is still responsive (although might not be connected to a server).
NML_375
Post Reply