- systemd reads how to start a service in its unit file:
ExecStartis the program,Restartsays whether to start it again after a crash.systemctl catprints the file. sudo journalctl -u <service>prints a service's journal: it shows how the process ended and whether systemd started the service again.- The service's main process is
Main PIDinsystemctl status.restartreplaces it with a new one;reloadkeeps it and asks the service to reread its settings. - At the start of the lesson cron came back by itself: its unit has
Restart=on-failure. The nginx unit has noRestartline, so it stayedfaileduntil a command started it.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson