simpler healthcheck for postfix
parent
0bc901a722
commit
a412951a30
@ -1,8 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ "$(echo QUIT|nc localhost 25|tail -n1|cut -f1 -d ' ')" = "221" ]; then
|
|
||||||
echo "ping successful"
|
|
||||||
else
|
|
||||||
echo "ping failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
Loading…
Reference in New Issue