LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-27-2004, 08:54 PM   #1
vanalex
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/programname.pid 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.

Alexander
 
  


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 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-23-2006 11:46 PM
runlevel shell scripts sebastian.raghe Debian 4 04-15-2005 02:26 PM
Oracle 9i Start/Stop scripts vous Linux - Software 0 01-16-2004 01:59 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM
Slack; Where are the runlevel scripts? GAVollink Slackware 4 11-10-2003 09:21 AM


All times are GMT -5. The time now is 03:42 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