network: Write keepalived interface status to file
This commit is contained in:
parent
d6cc79dcb3
commit
043104f062
4 changed files with 60 additions and 1 deletions
7
roles/network/files/keepalived-notify.sh
Executable file
7
roles/network/files/keepalived-notify.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
umask 022
|
||||
|
||||
echo "$3" > "/run/keepalived/${2}.state"
|
Loading…
Add table
Add a link
Reference in a new issue