Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > ada7a91e7696a27e886b893f27ee013e > files > 102

piranha-0.8.4-26.el5_10.1.x86_64.rpm

#!/bin/sh
# We use $1 as the argument in the TEST which will be the various IP's
# of the real servers in the cluster.

# Check for ftp service
TEST=`echo "quit" | nc $1 21`
TEST=`echo $TEST | grep -c 220`

if [ $TEST != "1" ]; then
        echo "OK"
else
        echo "FAIL"
	# /bin/echo | mail pager@failure.company.com -s "NOTICE: $1 failed to provide ftp service"
fi