Anope IRC Services
Anope Support => 2.0.x/1.9.x Support => Topic started by: DLmass on February 20, 2014, 08:15:37 PM
-
Hey guys.
1. I'm looking for a upstart job for anope incase my server restarts or anope crashes..
2. I've also noticed if my Inspircd crash, my anope stops.. Can I somehow auto check this?
-
You have an example.chk in the data directory.
Have a look at docs/INSTALL and you'll read:
5) Setting up a crontab
A crontab entry will allow you to check periodically whether Anope is
still running, and restart it if not.
First rename the example.chk script that is in Anope path (by default,
this is ~/services/conf) to services.chk and edit it. You'll need to
modify the CONFIGURATION part of the file. Then ensure that the file is
marked as executable by typing chmod +x services.chk, and try to launch the
script to see if it works (Anope must not be running when you do this ;))
When this is done, you'll have to add the crontab entry. Type crontab -e.
This will open the default text editor with the crontab file. Enter the
following (with correct path):
*/5 * * * * /home/ircd/services/conf/services.chk >/dev/null 2>&1
The */5 at the beginning means "check every 5 minutes". You may replace
the 5 with other another number if you want (but less than 60). Consult
your system's manual pages for more details on the syntax of the crontab
file. Interesting manpages are crontab(5), crontab(1) and cron(8).
Save and exit, and it's installed.