forked from adamcooke/procodile
-
Notifications
You must be signed in to change notification settings - Fork 1
PID Files
Billy.Zheng edited this page Apr 13, 2026
·
3 revisions
The PIDs for each of the processes are stored in a pids directory also in the root of your application. It is important that this folder only contains PID files for processes managed by Procodile.
You can change the directory where PID files are stored by setting pid_root in Configuration.
Sometimes a process will re-spawn itself. That is to say it will spawn a new version of itself to replace the currently running process. If this happens, you will need to ensure that the newly created process's PID is written to the correct PID file.
You can find the path to the PID file in the PID_FILE environment variable. You should update this file to include the new PID. Procodile will notice the change when the original process is terminated.