Skip to content

PID Files

Adam Cooke edited this page Oct 18, 2016 · 2 revisions

The PIDs for each of the processes are stored in a pids dirctory 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 PID files are stored in by setting the pid_root config option.

### Processes that re-spawn themselves

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.

Clone this wiki locally