'How to use pidproxy in supervisor
I have been going through the limited documentation of supervisord concerning pidproxy and trying to understand what it actually does.
Attaching a similar configuration from what I understood from the documentation here:
[program:server]
command=/path/to/pidproxy /path/to/pidfile /path/to/run-server
autorestart=true
Here, run-server is the script that starts up my http service server. I want to understand more about path/to/pidfile. This pidfile should contain the pid of run-server or server ?
If it should contain the pid of run-server, in that case, if run-server gets killed somehow (maybe by a manual SIGKILL) then, will supervisor kill the grandchild process (server) too?
It would be great if someone could elaborate on this!
My goal is to start up server via run-server script post which I want supervisord to monitor the grandchild process server directly instead of monitoring the child process run-server
How do I achieve this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
