Linux Labs

Packages, services, and logs / Stage 8 of 13

Your own service unit and applying changes

Not running Starting usually ~20 s
Leave the lesson

Step 5 of 7 · on a machine · 4 min

Restart after a crash

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.

Exercise · do it

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.

Sign in and start The machine is available after signing in

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

Step 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
Ubuntu 24.04

Step 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
Loading…