Users complain that picture previews on the site appear only every other time. The lab-thumbs service that makes them seems to be running. Look at it and at the machine's memory.
Look at the preview service
Look at the state of the lab-thumbs service, the last lines of its log and the machine's memory.
First, predict
The preview service keeps being restarted. How much memory will free show for the machine in the available column?
Now start the exercise, run the command and compare your prediction with the output.
The lab-thumbs process was killed. What does systemd do next, according to the service log?
-
Then status would say
failed. Here it saysactivating (auto-restart), and the log hasScheduled restart job. -
The machine keeps running: the service log says
Scheduled restart job, restart counter is at …— only the service restarts.
systemd starts the service again a few seconds later, and the restart counter grows.