View Single Post
Unread 10-02-2002, 10:14 AM   #1
Joe
The Pro/Life Support System
 
Joe's Avatar
 
Join Date: Dec 1999
Location: Denver, CO
Posts: 4,041
Default I need someone to help me write a cron job!!

OK what i basicly need done, is something to monitor the httpd service on an hourly basis.

Basically I need it to do a “/sbin/service httpd status” and if the response is “httpd is stopped...” then run a “/sbin/service httpd start”

I am a dumbshit when it comes to writing my own scripts ( I can edit other people stuff rather easily though ) so I need some help with making the job file that I can drop into cron.hourly on the server.

There is a glitch with php, and the management software on the server that causes the HTTPD service to get all confused durring a graceful restart. ( cause it attempts multiple restarts at once and .. well that doesn't work)

Any help would be appreciated!!!
__________________
Joe - I only take this hat off for one thing...

ProCooling archive curator and dusty skeleton.
Joe is offline   Reply With Quote