LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   /etc/init.d script tutorial (https://www.linuxquestions.org/questions/programming-9/etc-init-d-script-tutorial-586540/)

mechdave 09-22-2007 08:11 AM

/etc/init.d script tutorial
 
Hey all,
Anyone know of any good tutorials for the writing of init.d scripts in Ubuntu/Debian. I have had a look around and there doesn't seem to be much around. All I require is a basic stop/start script with a pid file.

Cheers,
Mechdave

gnashley 09-22-2007 11:44 AM

Try looking at some of the existing scripts. All of them should have start/stop functions in them. To find one which uses a pid file may be a little more difficult, but you can cd into the /etc/init.d directory and run the command:
grep -nrH pid *
to find out which ones have them.


All times are GMT -5. The time now is 12:05 AM.