Shutdown command to NAS before autoshutdown with UPS / Commande pour éteindre le NAS avant la fermeture automatique avec le UPS

:uk:/:us: Shutdown command to NAS before autoshutdown

My YunoHost server

Hardware: Raspberry Pi 4 at home
YunoHost version: 4.0.4
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: Yunohost was installed manually on top of Raspberry Pi OS Buster because Stretch isn’t compatible and there were no images for Buster on the Raspberry Pi at the time.

Description of my issue

My server is connected to a UPS that is properly setup using apcupsd. I would like to have my server tell my NAS to shutdown at the same time or before the automatic shutdown when the battery runs low. My NAS is a ReadyNAS 212 and I can access it through SSH.


:fr: Commande pour éteindre le NAS avant la fermeture automatique avec le UPS

Mon serveur YunoHost

Matériel: Raspberry Pi 4 à la maison
Version de YunoHost: 4.0.4
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
Si oui, expliquer: Yunohost a été installé manuellement sur Raspberry Pi OS Buster car Stretch n’est pas compatible et il n’y avait pas d’images pour Buster sur le Raspberry Pi à l’époque.

Description du problème

Mon serveur est connecté à un onduleur correctement configuré en utilisant apcupsd. J’aimerais que mon serveur dise à mon NAS de s’arrêter en même temps ou avant l’arrêt automatique lorsque la batterie est faible. Mon NAS est un ReadyNAS 212 et je peux y accéder via SSH.