Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Some questions about anope  (Read 3269 times)

0 Members and 1 Guest are viewing this topic.

DLmass

  • Anope User
  • Offline Offline
  • Posts: 1
Some questions about anope
« 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?
Logged

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 240
    • French Eggdrop community
Re: Some questions about anope
« Reply #1 on: February 27, 2014, 08:53:20 AM »

You have an example.chk in the data directory.
Have a look at docs/INSTALL and you'll read:
Quote from: INSTALL
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.
Pages: [1]   Go Up