Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-22-2007, 08:11 AM   #1
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
/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.

Old 09-22-2007, 11:44 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,840

Rep: Reputation: 521Reputation: 521Reputation: 521Reputation: 521Reputation: 521Reputation: 521
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I have started working on a tutorial script kedens Linux - General 6 10-15-2006 04:48 PM
Has someone already written a tutorial script? kedens Linux - General 1 10-10-2006 08:44 PM
Shell Script Tutorial: shahrokhnikou Programming 1 10-28-2005 07:59 AM
could use some help with my init.d script.... BrianK Linux - General 3 10-31-2002 07:21 PM

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration