Commit a3873fd9 authored by Gabriel Detraz's avatar Gabriel Detraz

Check status sable

parent dcff9d9b
#!/bin/bash
# Renvoie un si le fichier BACKUP_ACTIVE est présent
# Verifie le statut de quagga, si quagga est down, tente de le relancer
# puis passe en fault
if [ -f /etc/keepalived/BACKUP_ACTIVE ]; then
if systemctl is-active quagga; then
exit 1
else
systemctl restart quagga
if systemctl is-active quagga; then
exit 1
else
exit 0
fi
fi
else
exit 0
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment