Flight Lab / Exams and the ground station / 04
Lesson 04 of 05 · about 4 min
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.