Process supervision

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Hedja (talk | contribs) at 20:03, 13 August 2018 (→‎Implementations: Added PM2, a popular implementation for Node.js). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Process supervision is a form of operating system service management in which some master process remains the parent of the service processes.

Benefits

Benefits[1] compared to traditional process launchers and system boot mechanisms, like System V init, include:

  • Ability to restart services which have failed
  • The fact that it does not require the use of "pidfiles"
  • Clean process state
  • Reliable logging, because the master process can capture the stdout/stderr of the service process and route it to a log
  • Faster (concurrent) and ability to start up and stop

Implementations

References