BOPM Crontab

#!/bin/sh
#
# Blitzed Open Proxy Monitor Crontab Script - Restart BOPM if needed.
#
# From support@sisrv.net
#
# To install this script:
#
# Edit the first line of the script below to reflect the directory
# you installed BOPM in.
#
# Copy this script to the directory you want it to stay in. This
# could be the directory you installed BOPM in, or something neutral,
# such as ~/crontabs or something.
#
# Run crontab -e
#
# To have the script run every minute, type this:
#
# * * * * * ~/crontabs/bopmchk
#
# Save, and exit. The script will now run every minute.

cd /home/sisrv/bopm/

# Leave the rest alone.

if [ -f var/bopm.pid ] ; then
PID=`cat var/bopm.pid`
if `kill -CHLD $PID >/dev/null 2>&1`; then
exit 0;
fi
rm -f var/bopm.pid
fi

bin/bopm
exit 0;
  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

UnrealIRCd crontab

UnrealIRCd crontab If you want to make sure that UnrealIRCd starts on system startup (or...

Anope Services crontab

Setting up a crontab A crontab entry will allow you to check periodically whether Anope is still...

About cronjob

The crontab is a list of commands that you want to run on a regular schedule, and also the name...

EggDrop crontab

The botchk script and crontab are used to automatically restart the bot if the shell it's on...

psyBNC Crontab

When your server stops working and you must reboot it, the psyBNC cant start automatically. But...

Powered by WHMCompleteSolution