kip at kdream.com
Fri Apr 27 17:04:59 UTC 2012
I am installing a program, and it has a PID file in /var/run
Unfortunately the .conf file specifies the file, but it was a manual
install, and it did not create the .pid file. Looking at other pid files
in the same directory it looks like they just have a number.
It also looks like the start/stop for this application in /etc/init.d
uses the pid file to start and stop the process.
How do I find a number to use?
I can look at all of the running processes and they have numbers between
1000 and 2300.
So how do I know if I picked a number it is not being used by a process
that is not currently running?
I can't find a table of "standard" process identification numbers. (Like
the one for TCP or UDP ports).
It looks like the maximum PID is 32767. So do I just go crazy and use
something like 32000? Or are numbers <1000 available for this?
More information about the ubuntu-users