LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-22-2007, 08:11 AM   #1
mechdave
Member
 
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.

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

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


Reply


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 09:23 AM.

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