954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

process id

Hi,
I am using kubuntu 8.0. In the init script "start-stop-daemon --stop --quiet -p $PID_FILE" used to stop a daemon. It is also specified at the top that PID_FILE="/var/run/daemon.pid".

I can start daemon, but when i try to stop, it is not stopping. Also no .pid file is generated in the location /var/run.

Can anybody please tell how does the daemon.pid file generate inside /var/run or it automatically generate the .pid file when daemon starts? Else anything we need to write for generate the pid file? If so where we going to wtite it? Is it in the init script? Please reply anyone have any idea about this.

Thanks in advance,
Renjith

RenjithVR
Light Poster
41 posts since Mar 2008
Reputation Points: 12
Solved Threads: 7
 

Usually the application creates the .pid (Process ID) file when it starts, and the location varies with the application. Sometimes you can tell the app where to put the .pid via the app's config file, but the general default is /var/run/

TheOgre
Posting Whiz
393 posts since Aug 2003
Reputation Points: 128
Solved Threads: 9
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: