Editing the botchk file to automatically restart your bot

Eggdrop daemonizes. Screen/tmux are for irssi/weechat, not the bot. Persist with crontab via autobotchk. Prefer that over hand-editing botchk.

autobotchk (do this)

From the bot directory, after the conf works:

cd ~/botdir
./scripts/autobotchk botnick.conf

Useful flags:

./scripts/autobotchk botnick.conf -noemail

That writes a crontab entry that runs botchk every few minutes. Confirm:

crontab -l

You should see a line pointing at scripts/botchk (or the generated wrapper) in your bot dir.

Hand-edit botchk (only if autobotchk will not run)

scripts/botchk needs four paths: bot dir, binary, conf, userfile. They must match reality. Then crontab:

0,10,20,30,40,50 * * * * /home/YOU/botdir/scripts/botchk >/dev/null 2>&1

crontab -e to insert. pwd from the bot dir for the path.

Do not "keep it in screen so it stays up." That is how you lose the bot on a detached session and violate the point of a daemon.

AUP still applies: max 2 IRC connections per shell to a given network.

  • 135 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Mehr zum Thema

Setting up an Eggdrop (the short version)

SSH into your KIRE shell. Not telnet. Tcl and OpenSSL are already on the box. Current Eggdrop is...

Getting the Eggdrop Source Code

Get current Eggdrop from the Eggheads project. That is geteggdrop.com or ftp.eggheads.org. The...

Detailed Installation Instructions (Manual Install Method)

SSH into the shell. Tcl and OpenSSL are already there. Current Eggdrop is 1.9 / 1.10 from...

How to configure your eggdrop bot

Work in the install dir (~/botdir). Copy the sample, do not edit eggdrop.conf in place: cp...

Starting your eggdrop bot for the first time

Conf edited, die gone, installed to ~/botdir. SSH in. Do not start this from screen/tmux. First...