CompTIA
XK0-005 · Question #1131
A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the…
The correct answer is A. systemctl stop httpd && systemctl mask httpd. A masked service is one whose unit file is a symlink to /dev/null . This makes it "impossible" to load the service, even if it is required by another, enabled service. When you mask a service, a symlink is created from /etc/systemd/system to /dev/null , leaving the original…
System Management
Question
A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?
Options
- Asystemctl stop httpd && systemctl mask httpd
- Bsystemctl disable httpd && systemctl mask httpd
- Csystemctl stop httpd && systemctl hide httpd
- Dsystemctl disable httpd && systemctl hide httpd
How the community answered
(37 responses)- A78% (29)
- B5% (2)
- C14% (5)
- D3% (1)
Explanation
A masked service is one whose unit file is a symlink to /dev/null . This makes it "impossible" to load the service, even if it is required by another, enabled service. When you mask a service, a symlink is created from /etc/systemd/system to /dev/null , leaving the original unit file elsewhere
Topics
#systemd#service management#linux commands#configuration management
Community Discussion
No community discussion yet for this question.