A system administrator configures a web server using systemd. After creating a custom service unit file, the administrator runs `systemctl daemon-reload` but the service still fails to start with a 'Unit not found' error. What is the most likely cause?
Trap 1: The administrator forgot to run `systemctl enable` before starting…
Enable creates symlinks for automatic start, but is not required for manual start.
Trap 2: The administrator is not in the 'systemd' group.
No special group is required to manage systemd services; root or sudo is sufficient.
Trap 3: The service name was misspelled in the `systemctl start` command.
While possible, the 'Unit not found' error specifically indicates the unit file is not known to systemd, not a spelling mistake.
- A
The administrator forgot to run `systemctl enable` before starting the service.
Why wrong: Enable creates symlinks for automatic start, but is not required for manual start.
- B
The unit file is placed in /usr/lib/systemd/system/ instead of /etc/systemd/system/.
Unit files for custom services should be in /etc/systemd/system/; /usr/lib/systemd/system/ is for distribution-provided units.
- C
The administrator is not in the 'systemd' group.
Why wrong: No special group is required to manage systemd services; root or sudo is sufficient.
- D
The service name was misspelled in the `systemctl start` command.
Why wrong: While possible, the 'Unit not found' error specifically indicates the unit file is not known to systemd, not a spelling mistake.