Files
jerikan-network-cmdb/checks/linux-keepalived
T
Vincent Bernat d191613ab8 Initial release
No history. If you have the original history, you can use:

```
git replace THISCOMMIT b0b998bd1c651e308ac71a9158e07e5c3521a281
```
2021-05-15 16:18:03 +02:00

19 lines
365 B
Bash
Executable File

#!/bin/sh
output=$(mktemp)
trap "rm -f $output" EXIT
keepalived -t -f output/"$1"/keepalived.conf 2> $output
ret=$?
>&2 cat $output
case $ret in
4)
# If we get this error, this is harmless. It's the last check
# keepalived does.
! grep -q "^Non-existent interface specified" $output || exit 0
exit 4
;;
esac
exit $ret