Can locate proc pid file pm in inc
Monit does this by looking at the. I also tried creating my own simple executable and running it- here too I can't figure out where the. Short of that, you can always look in the process init script. For custom applications, the PID will be defined in a wrapper script hopefully.
Most developers I know follow the same convention as the daemons above, though. If you do encounter something without a PID file, remember that Monit can monitor on a process string patern as well. I have a database server running in embedded mode, and the data are within the containing application's directory. The database has something like a. To locate this lock file, I listed all files held open by the app:.
That gave me a long list including sockets, pipes, server files etc. Few filters and I got to what I needed:. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Add a comment.
Active Oldest Votes. Improve this answer. Gilles Quenot Gilles Quenot Mark Stewart Mark Stewart 1 1 gold badge 7 7 silver badges 19 19 bronze badges. What if 20 people are running less at the time?
I think the OP wants an output filename to look for. I understood the question to be a search for the use of an executable, not a data file, so in your case, he would get twenty pids and a single path. I see, though, how you are interpreting the question differently, so I'll add a second solution in my answer to cover your case, thanks. Sign up or log in Sign up using Google. Sign up using Facebook.
Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Related 1. Hot Network Questions. Question feed. Standard output, standard error and command line redirection Warning when something goes wrong What does die do? Unknown warnings category Can't use string Symbolic references in Perl Can't locate Can't locate object method " Useless use of hash element in void context Useless use of private variable in void context readline on closed filehandle in Perl Possible precedence issue with control flow operator Scalar value Formatted printing in Perl using printf and sprintf.
Can't locate Prev Next. Written by Gabor Szabo. If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
0コメント