cemdogan.com

Tag: check service is up

service status of the script that controls the

by 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.sh

program = 'proftpd'
date-d @ 1234567890>> / var / log / kontrol.log

if 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

more... 1 Comment : , , more ...

Search

The following kutucukla site search you can do:

Links