Re: Crontab for bopm
Philipp Kern <[email protected]>
| Newsgroups | gmane.network.irc.bopm |
|---|---|
| Organization | 0x539.de |
| Message-ID | <[email protected]> |
Hi Andrew, please turn the HTML mail function of your email client *off*. On Fr, 2004-09-10 at 23:59, Andrew Trimmell wrote: > Has anyone made a chk script for bopm to run for crontab? If so id > like to get that. Just let me know what the link is and point me in > the right direction. You'll have to tweak it, but you'll get the idea. #!/bin/sh # # Blitzed Open Proxy Monitor Crontab Script - Restart BOPM if needed. # # From [email protected]. # # 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 ~/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; Cheers, Philipp Kern
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBQr4E7Ro5M7LPzdgRAmdjAJ46Nv8yIrhUokvrr+z6xfvLFwCwygCgr6Wu eZpVTaEEbvfYspqxXvdWuP8= =iNqm -----END PGP SIGNATURE-----