Linux and the terminal, topic 5 of 78
Processes and services
A process is a running program, with an id, a parent, an owner and open files. ps, top and kill show and stop them; signals such as SIGTERM and SIGKILL are how they are told to stop.
A service is a process that should always run. On most distributions systemd starts it at boot, restarts it when it dies and collects its logs: learn systemctl and journalctl, and write a unit file for a small program of your own.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- systemdOfficial
- systemd.service(5) manual pageOfficial