exit: add DHCP relay for new server

Really quite shoddy as it is right now. Should get better once the old
server is retired.
This commit is contained in:
Timotej Lazar 2024-07-13 18:08:31 +02:00
parent bb41d406f8
commit 99aef43574
5 changed files with 27 additions and 43 deletions

View file

@ -1,18 +0,0 @@
#!/bin/sh
class="${1}"
name="${2}"
state="${3}"
case "${state}" in
"MASTER" | "FAULT")
systemctl start "${name}"
;;
"BACKUP" | "STOP")
systemctl stop "${name}"
;;
*)
logger "keepalived unknown state for ${name}: ${state}"
exit 1
;;
esac