A system administrator is troubleshooting a service named custom-web.service. Attempts to start the service fail, and the output of systemctl status custom-web.service includes a line indicating the service is 'masked'. Which of the following commands must be run to allow the service to be started and then immediately launch it?
The correct command is systemctl unmask custom-web.service && systemctl start custom-web.service. Masking a service with systemctl mask creates a symbolic link from the service's unit file to /dev/null, which prevents it from being started or enabled. To reverse this, the systemctl unmask command must be used first to remove the symbolic link. After the service is unmasked, systemctl start can be used to run it.
systemctl enable is used to make a service start automatically at boot, but it cannot be used on a masked service.
systemctl daemon-reload is used to reload systemd's configuration after unit files have been edited, but it does not unmask a service.
systemctl reset-failed is used to clear the 'failed' state of a service, which is different from the 'masked' state.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does it mean when a service is 'masked' in systemd?
Open an interactive chat with Bash
What does the `systemctl unmask` command do?
Open an interactive chat with Bash
How is `systemctl enable` different from `systemctl start`?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access