Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-27-2004, 09:54 PM   #1
LQ Newbie
Registered: Dec 2003
Location: Vancouver, B.C.
Distribution: Red Hat 9
Posts: 3

Rep: Reputation: 0
Runlevel start/stop scripts

Hello folks

For now I use Red Hat Linux 9. I am trying to understand service start/stop scripts stored in directory /etc/rc.d/init.d.

I see that in the general function script /etc/rc.d/init.d/functions, that functions daemon () and kilproc () which start and stop daemons respectively check for pid files /var/run/ to find out whether a daemon is already running.

My questions are:

1./ Why the program pidof is not sufficient to use to find out whether a daemon is already running, why the scripts need to check the pid files too?

2./ I still do not understand what is the argument %PPID in the command (notice the percent sign):

pid=`pidof -o $$ -o $PPID -o %PPID -x program`

Thanks for your answer.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Start/stop/update scripts do not work over webmin. Terroth Linux - General 3 02-24-2006 12:46 AM
runlevel shell scripts sebastian.raghe Debian 4 04-15-2005 03:26 PM
Oracle 9i Start/Stop scripts vous Linux - Software 0 01-16-2004 02:59 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 07:24 AM
Slack; Where are the runlevel scripts? GAVollink Slackware 4 11-10-2003 10:21 AM > Forums > Linux Forums > Linux - General

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

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