how do you create an /etc/rc.d/init.d/file start script?

Hi,

I have a monitor script that checks system status, I would like this script to automatically when the server boots or gets to run level 3. How would i create a script that does this by this method and how would i be able to check if its running(with a pid file)?

Any help would be great.

 

 

 

 

Top