| Matthias Andreas Benkard | 9dabdab | 2024-03-06 13:12:09 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |||||
| 3 | set -eu | ||||
| 4 | |||||
| 5 | if [ "${CLAMAV_NO_CLAMD:-}" != "false" ]; then | ||||
| 6 | if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then | ||||
| 7 | echo "ERROR: Unable to contact server" | ||||
| 8 | exit 1 | ||||
| 9 | fi | ||||
| 10 | |||||
| 11 | echo "Clamd is up" | ||||
| 12 | fi | ||||
| 13 | |||||
| 14 | exit 0 | ||||