From 57ac7cb4db63dee8e06d696ef6f973c337467040 Mon Sep 17 00:00:00 2001 From: TehPeGaSuS <25697531+TehPeGaSuS@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:53:23 +0200 Subject: [PATCH] Update the cron file name. name --- data/CMakeLists.txt | 2 +- docs/INSTALL | 8 ++++---- docs/INSTALL.fr | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 9f7e5e665..37d58b26f 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,4 +1,4 @@ -# Only install example.chk and anope.example.conf from this directory +# Only install cron.example.sh and anope.example.conf from this directory # NOTE: I would've had this just find all files in the directory, but that would include files not needed (like this file) set(DATA cron.example.sh anope.example.conf botserv.example.conf hostserv.example.conf modules.example.conf operserv.example.conf chanserv.example.conf global.example.conf memoserv.example.conf nickserv.example.conf chanstats.example.conf irc2sql.example.conf stats.standalone.example.conf) install(FILES ${DATA} diff --git a/docs/INSTALL b/docs/INSTALL index 01f04e829..305295331 100644 --- a/docs/INSTALL +++ b/docs/INSTALL @@ -111,17 +111,17 @@ Note: You should also read the README and FAQ files! 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 ~/anope/conf) to anope.chk and edit it. You'll need to + First rename the cron.example.sh script that is in Anope path (by default, + this is ~/anope/conf) to cron.sh 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 anope.chk, and try to launch the + marked as executable by typing chmod +x cron.sh, 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/anope/conf/anope.chk >/dev/null 2>&1 + */5 * * * * /home/ircd/anope/conf/cron.sh >/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 diff --git a/docs/INSTALL.fr b/docs/INSTALL.fr index b27b32187..e8cfd8feb 100644 --- a/docs/INSTALL.fr +++ b/docs/INSTALL.fr @@ -121,11 +121,11 @@ Note : Vous devrez également lire les fichiers README et FAQ ! Une entrée crontab vous permettra de vérifier périodiquement si Anope est toujours en cours d'exécution et de le redémarrer s'il n'est pas. - D'abord renommez le script example.chk qui est dans les dossiers - d'Anope (par défaut, ~/anope/conf) en anope.chk et modifiez-le. + D'abord renommez le script cron.example.sh qui est dans les dossiers + d'Anope (par défaut, ~/anope/conf) en cron.sh et modifiez-le. Vous aurez besoin de modifier la partie CONFIGURATION du fichier. Assurez-vous ensuite que le fichier est marqué comme exécutable en - tapant chmod +x anope.chk et essayez de lancer le script pour voir + tapant chmod +x cron.sh et essayez de lancer le script pour voir si cela fonctionne (Anope ne doit pas être en marche lorsque vous testez cela ;)) @@ -133,7 +133,7 @@ Note : Vous devrez également lire les fichiers README et FAQ ! crontab -e. Cela va ouvrir l'éditeur de texte par défaut avec le fichier crontab. Entrez la ligne suivante (avec le chemin correct) : - */5 * * * * /home/ircd/anope/conf/anope.chk > /dev/null 2>&1 + */5 * * * * /home/ircd/anope/conf/cron.sh > /dev/null 2>&1 Le */5 au début signifie "vérifier toutes les 5 minutes". Vous pouvez remplacer le 5 par un autre numéro si vous voulez (mais moins de 60).