1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/watchdog_ynh.git synced 2024-06-22 05:42:53 +02:00

Merge pull request #3 from YunoHost-Apps/check-hardware-watchdog-device

Check hardware watchdog device
This commit is contained in:
eric_G 2024-05-28 20:33:39 +02:00 committed by GitHub
commit 1356dd68ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 12 deletions

View file

@ -1,5 +1,5 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
It shall NOT be edited by hand.
-->
@ -16,8 +16,8 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
## Overview
A watchdog service makes sure your server is still running and reboots it if necessary.
It better (only?) works if your server has a hardware watchdog device.
A watchdog service makes sure your server is still running and reboots it if necessary.
It better (only?) works if your server has a [hardware watchdog device](https://en.wikipedia.org/wiki/Watchdog_timer).
The included sercice will regularly write to `/dev/watchdog`. If it stops, then the freeze is detected and server rebooted.
@ -43,4 +43,4 @@ or
sudo yunohost app upgrade watchdog -u https://github.com/YunoHost-Apps/watchdog_ynh/tree/testing --debug
```
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>

View file

@ -1,5 +1,5 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/readme_generator
It shall NOT be edited by hand.
-->
@ -16,8 +16,8 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
## Vue densemble
Un service de surveillance *watchdog* s'assure que votre serveur tourne toujours, et le redémarre si nécessaire.
Il tournera préférentiellement (uniquement?) si votre serveur est équipé d'un *watchdog* matériel.
Un service de surveillance *watchdog* s'assure que votre serveur tourne toujours, et le redémarre si nécessaire.
Il tournera préférentiellement (uniquement?) si votre serveur est équipé d'un [*watchdog*](https://fr.wikipedia.org/wiki/Chien_de_garde_(informatique)) matériel.
Le service inclut ira régulièrement écrire dans `/dev/watchdog`. S'il s'arrête, le plantage est alors détecté et résolu par un redémarrage du système.

View file

@ -1,5 +1,5 @@
A watchdog service makes sure your server is still running and reboots it if necessary.
It better (only?) works if your server has a hardware watchdog device.
A watchdog service makes sure your server is still running and reboots it if necessary.
It better (only?) works if your server has a [hardware watchdog device](https://en.wikipedia.org/wiki/Watchdog_timer).
The included sercice will regularly write to `/dev/watchdog`. If it stops, then the freeze is detected and server rebooted.

View file

@ -1,5 +1,5 @@
Un service de surveillance *watchdog* s'assure que votre serveur tourne toujours, et le redémarre si nécessaire.
Il tournera préférentiellement (uniquement?) si votre serveur est équipé d'un *watchdog* matériel.
Un service de surveillance *watchdog* s'assure que votre serveur tourne toujours, et le redémarre si nécessaire.
Il tournera préférentiellement (uniquement?) si votre serveur est équipé d'un [*watchdog*](https://fr.wikipedia.org/wiki/Chien_de_garde_(informatique)) matériel.
Le service inclut ira régulièrement écrire dans `/dev/watchdog`. S'il s'arrête, le plantage est alors détecté et résolu par un redémarrage du système.

View file

@ -1,3 +1,3 @@
Your device boot configuration has been updated to enable the hardware watchdog.
Please reboot it.
Please reboot your server.

3
doc/POST_INSTALL_fr.md Normal file
View file

@ -0,0 +1,3 @@
La configuration de démarrage de votre appareil a été mise à jour pour activer le chien de garde matériel.
Veuillez redémarrer votre server.

View file

@ -8,6 +8,16 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# WATCHDOG DEVICE CHECK
#=================================================
ynh_script_progression --message="Checking the hardware watchdog device presence..."
if [ ! -f /dev/watchdog ]; then
ynh_die --message="Your server doesn't seem to have a '/dev/watchdog' device, this certainly means that it has no hardware watchdog device. However, this package is only relevant if such a device exists, we're sorry."
fi
#=================================================
# INSTALL DEPENDENCIES
#=================================================