-   Programming (
-   -   /etc/init.d script tutorial (

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.


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 11:02 PM.