daemonize

To make a program detach itself and keep running in the background, traditionally by forking and exiting the original process.

A daemonized process hides from its supervisor, so restarts, health checks and log capture stop working.

In more detail

Twelve-factor processes should never daemonize or write PID files. A supervisor watching the process it started sees a clean exit and either restarts a service that is already running or gives up on one that is failing. In a container the main process exiting stops the container immediately.

Related terms

Taught in

References