Here you choose the commands: the unit has to be changed, applied and tested with a real crash.
lab-worker should come back by itself after a crash, like cron in the lesson “Services under systemd”. Right now its unit says Restart=no.
Let it come back by itself
Make systemd start lab-worker again by itself after a crash. Test it with a crash: kill the service's process with the KILL signal, and the service must be running again as student. Do not enable autostart.
Goals · 0 of 3
- Set up a restart after a crash not done yet
- Test the restart with a real crash not done yet
- Keep autostart off not done yet