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 

Eggdrop Bot Auto Restart

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


Joined: 25 Oct 2005
Posts: 15

PostPosted: Mon Nov 21, 2005 2:04 am    Post subject: Eggdrop Bot Auto Restart Reply with quote

Hi All,

Actually, eggdrop bot goes offline.. at times it comes back... but sometimes i had to restart it manually using putty.. why is that so.. and any solution to get rid of this problem.. like the bot should restart automatically when it goes offline.


Passionate.

P.S: Sorry just incase if this question asked already.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Nov 21, 2005 8:09 am    Post subject: Reply with quote

Check your logs for errors, if there're no errors then it's probably from your shell. If it's the second case then ask your provider to solve it and if your shell supports crontab then check out this section for help in using crontab.
_________________
Follow me on GitHub

- Opposing

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


Joined: 31 Dec 2008
Posts: 2
Location: U.S.A.

PostPosted: Wed Dec 31, 2008 9:25 am    Post subject: same issue Reply with quote

i know this was posted back in 2005 - but i am having the exact same issue today - and its not the box - as i have 2 other eggdrops on the same box and no issues from any of them.

is there a script that could make the eggdrop auto restart?
Back to top
View user's profile Send private message Visit poster's website
potnet
Voice


Joined: 02 Jan 2009
Posts: 1
Location: Canada

PostPosted: Fri Jan 02, 2009 8:27 pm    Post subject: Ryu's question Reply with quote

Editing the botchk file

The botchk script and crontab are used to automatically restart the bot if the shell it's on reboots or if the bot process is killed for some other reason. You can find the botchk file in the scripts directory (in the directory you installed the bot to). Newer versions of Eggdrop (from 1.3.24i) have a script included that automatically configures botchk and crontab for you. In telnet, simply switch to the scripts directory and type chmod 700 autobotchk then ./autobotchk <config> -dir /home/botdir -noemail, where /home/botdir is the directory you installed the bot to and <config> is the name you chose for your config file.

Taken from http://www.egghelp.org/setup.htm under Editing the botchk file
Back to top
View user's profile Send private message MSN Messenger
Ryu
Voice


Joined: 31 Dec 2008
Posts: 2
Location: U.S.A.

PostPosted: Mon Jan 05, 2009 1:58 am    Post subject: Reply with quote

the botchk file would be very helpful, if the bot had actually died, but that is not my issue here, when i log into the box - and do ps x -- the bot is still running - but it is NOT on my network, that is my issue. hence the reason i asked is there a script that could make the eggdrop auto restart? meaning make it rejoin my network since it is still running as a process on the shell.

ps: i already have the botchk set for each of my eggdrops so that they restart if the shell gets rebooted.
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Jan 08, 2009 8:23 pm    Post subject: Reply with quote

I believe I did post a watchdog-enabled botchk solution on the forum some time ago, havn't got a link right now, but a simple search should reveal it...

That said, it would seem to me that you've got some script that simply blocks your eggie. I'd recommend trying to find out which, and fix it.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Thu Jan 08, 2009 8:56 pm    Post subject: Reply with quote

I think a simple script to check whether botonchan or not now and then, if not, try and jump or something.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jan 09, 2009 4:53 pm    Post subject: Reply with quote

Incith: I doubt that would be very useful, since apart from being locked out through a netsplit, I can't think of a situation where eggdrop wouldn't be able to make it's way back into the channel, should it not be "frozen"... (or well, very faulty scripting I suppose, but then the answer would be to fix that script)

If it is "frozen", however, no tcl-script running within the eggdrop will ever be able to restart/reboot it...

Same goes for network presence (assuming never-give-up and check-stoned are set to 1).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
DragonRyder
Voice


Joined: 22 Nov 2007
Posts: 12
Location: USA

PostPosted: Sun Jan 11, 2009 10:59 am    Post subject: Reply with quote

the eggdrop config i am using for the shoutcast echo is the same one i have used for awhile now - adn the eggdrop config is the same i use on all my drops adn they all stay online - so i know it aint the drop config or my other drops would all "freeze" up and yes never-give-up and check-stoned are set to 1 - not trying to be mean here - but i am not a n00b when it comes to eggdrops - i simply thought that others who are maybe more experienced in drops might have a clue as tyo what might be happening here.
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Jan 11, 2009 12:08 pm    Post subject: Reply with quote

Have you tried remaining connected through dcc, in order to see if your eggdrop is still responding when it "disappears"?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
DragonRyder
Voice


Joined: 22 Nov 2007
Posts: 12
Location: USA

PostPosted: Tue Jan 13, 2009 8:53 pm    Post subject: Reply with quote

now that is an interesting idea - thanks and i am being serious - thank you

will let you know what happens
Back to top
View user's profile Send private message Visit poster's website
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