egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

timeout/re-connection

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
NewzLive
Voice


Joined: 04 Jul 2007
Posts: 4

PostPosted: Fri Mar 07, 2008 12:41 am    Post subject: timeout/re-connection Reply with quote

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.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Mar 07, 2008 6:42 am    Post subject: Reply with quote

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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Fri Mar 07, 2008 7:09 pm    Post subject: Reply with quote

Note that you'll need to have the check-stoned setting in your config set to 1 (which it is by default).
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Mar 07, 2008 8:12 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber