Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 756 Bytes

PROCESS.md

File metadata and controls

15 lines (10 loc) · 756 Bytes

Guideline for Supervised Process Development

Examples of SuPr (Supervised Process) development:

  • update-agent
  • orb-core
  • fan-controller
  • ...

Expectations

Through signal_hook or otherwise, we expect components to adhere to UNIX signal best practices, specifically around shutdown signals.

Shutdown Flow

The supervisor decides it must shutdown. The supervisor iterates over the list of supervised processes, reads their corresponding PID file, and issues a SIGTERM to give the application SOME DEFINED SECONDS to shutdown. After that time has elapsed, the supervisor re-reads the SuPr PID files and sends a SIGKILL.