- A unit file is settings made of the
[Unit],[Service]and[Install]sections. systemd runsExecStartwithout a shell,Usernames the user,Restartsays when to start again. - A change passes through three places: the file on disk, the description in systemd after
daemon-reload, and the process after a new start. UserandExecStartreach only a new process, so the service is restarted after they change. systemd appliesRestartright afterdaemon-reload.- At the start of the lesson lab-worker ran as root:
User=studentwas written to the file, but the description was not reloaded and the service was not restarted.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson