Commit 03e82fb1 authored by Gabriel Detraz's avatar Gabriel Detraz

Modification du script checkstatus, suppression du daemon ospf

parent f643b32d
#!/bin/bash
# Renvoie un si le fichier MASTER est présent
# Verifie le statut de ospfd, si ospfd est down, tente de le relancer
# puis passe en fault (activation du routage sur le second routeur)
if [ -f /etc/keepalived/MASTER ]; then
if systemctl is-active ospfd; then
exit 0
else
systemctl restart ospfd
if systemctl is-active ospfd; then
exit 0
else
rm /etc/keepalived/MASTER
exit 1
fi
fi
exit 0
else
exit 1
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