Tag: check service is up
service status of the script that controls the
by admin on Jul.29, 2009, under linux
ProFTPD is running as an example of that control, and the results of that work to kick-mail the log file, which could be the following script.
/ Bin / bash
# 29.07.09 Cem DOGAN
# Kontrol.shprogram = 'proftpd'
date-d @ 1234567890>> / var / log / kontrol.logif ps ax | grep-v grep | grep $ program> / dev / null
Hotels
echo "The program is running">> / var / log / kontrol.log
else
echo "$ program is not working">> / var / log / kontrol.log
mail-s "$ program is down" user_name@email_address.com
fi
