Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to make my bots and BNCs automatically restart if they terminate?

automatically bncs bots
0
Posted

Is there a way to make my bots and BNCs automatically restart if they terminate?

0

Yes. You can use one of our system tools called crontab to do that. To setup your bot in crontab so that your bot automatically restarts when it is terminated, you can use a simple tool that is included with the eggdrop program that takes easy advantage of crontab. Just type this wham of a command: cd ~/thedirectoryyoureggdropfilesarein/scripts ; chmod 700 autobotchk ; ./autobotchk yourbotsname.conf -dir /home/yourusername/thedirectoryyoureggdropfilesarein -noemail. To setup your BNC to automatically restart when it terminates, follow these instructions: • Type export EDITOR=pico at the shell prompt. • Type crontab -e at the shell prompt. This will bring up a text editor called pico. • Enter the following line in this editor: 0,20,40 * * * * /home/yourusername/yourbncdirectory/bncchk >/dev/null 2>&1 • Press Control-X (Control and the letter X together at the same time). • Enter Y when prompted to save, and just press enter when asked to specify a filename. • You’re done! Your BNC will

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.