PID file
A file where a background program writes its own process ID so other tools can find it later.
In more detail
PID files belong to the old daemon model and can go stale when a process dies. The twelve-factor app forbids them because the platform already knows which process it started.
Related terms
- daemonize — To make a program detach itself and keep running in the background, traditionally by forking and exiting the original process.
- process ID — The number the kernel gives each running process so it can be told apart from all the others.
Taught in
- Port Binding And Concurrency — DevOps & Site Reliability Engineering