Lesson 04 of 05 · about 4 min

Unit type

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

systemd Type=simple expects the process you started to stay in the foreground and remain the service. Type=oneshot expects the process to run and exit. A restart policy belongs on the daemon, not on a script that is finished when it exits.

One unit is a ground daemon that stays up. One unit is a migration script that should run once. Name each type.

On the Knowledge page

Resources