0% found this document useful (0 votes)
125 views2 pages

Chapter-8 (Controlling Services and Daemons)

This document contains a series of questions and answers about Systemd concepts and commands. It covers topics like listing loaded services, the difference between Requires and Wants dependencies, avoiding unit conflicts by masking services, valid service statuses and socket unit properties, unit types, checking dependency relationships with systemctl list-dependencies, custom unit file locations, and viewing unit configuration options.

Uploaded by

Kyar Nyo Aye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views2 pages

Chapter-8 (Controlling Services and Daemons)

This document contains a series of questions and answers about Systemd concepts and commands. It covers topics like listing loaded services, the difference between Requires and Wants dependencies, avoiding unit conflicts by masking services, valid service statuses and socket unit properties, unit types, checking dependency relationships with systemctl list-dependencies, custom unit file locations, and viewing unit configuration options.

Uploaded by

Kyar Nyo Aye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Which command shows all service unit files on your system that are currently

loaded?
A. systemctl --type=service
B. systemctl --type=service --all
C. systemctl --list-services
D. systemctl --show-units | grep services
ANSWER: A

Which statement about Systemd wants is not true?


A. You can create wants by using the systemctl enable command.
B. The target to which a specific want applies is agnostic of the associated wants.
C. Wants are always administered in the /usr/lib/systemd/system directory.
D. Each service knows to which target its wants should be added.
ANSWER: C

What is the best solution to avoid conflicts between incompatible units?


A. Nothing; the unit files have defined for themselves which units they are not
compatible with.
B. Disable the service using systemctl disable.
C. Unmask the service using systemctl unmask.
D. Mask the service using systemctl mask.
ANSWER: D

Which of the following is not a valid status for Systemd services?


A. Running(active)
B. Running(exited)
C. Running(waiting)
D. Running(dead)
ANSWER: D

Which of the following statements is not true about socket units?


A. A socket unit requires a service unit with the same name.
B. Socket units can listen on ports and activate services only when activity occurs
on a port.
C. Socket units cannot contain the name of the associated binary that should be
started.
D. Socket units may react upon path activity.
ANSWER: D

Which of the following is not a valid Systemd unit type?


A. service
B. udev
C. mount
D. socket
ANSWER: B

You want to find out which other Systemd units have dependencies to a specific
unit. Which command would you use?
A. systemd list-dependencies --reverse
B. systemctl list-dependencies --reverse
C. systemctl status my.unit --show-deps
D. systemd status my.unit --show-deps -r
ANSWER: B

Which of the following is not a valid command while working with units in
systemctl?
A. systemctl unit start
B. systemctl status -l unit
C. systemctl mask unit
D. systemctl disable unit
ANSWER: A

Which directory contains custom Systemd unit files?


A. /etc/systemd/system/
B. /var/systemd/system/
C. /usr/systemd/system/
D. /lib/systemd/system/
ANSWER: A

What should you include to ensure that a unit file will automatically load another
unit file?
A. Requires
B. Requisite
C. Wants
D. Before
ANSWER: A

Which command will show available configuration options for the httpd.service unit?
A. systemctl show httpd
B. systemctl status httpd
C. systemctl httpd status
D. systemctl httpd show
ANSWER: A

You might also like