Interview Prep/Linux/Processes, Signals & systemd

Explain the systemd service Type= options.

AdvancedConceptProcesses, Signals & systemd
Answer
  • simple (default): ExecStart process is the service; started immediately after fork.
  • exec: like simple but considered started only after execve() succeeds (catches missing binaries).
  • forking: traditional daemon that forks and the parent exits; use PIDFile=.
  • oneshot: runs to completion; often with RemainAfterExit=yes.
  • notify: the service calls sd_notify("READY=1") when truly ready.
  • dbus, idle: less common.

Wrong Type= causes timeouts or systemd thinking a running service died.

All Linux questions Roadmap: Linux

More on Processes, Signals & systemd