Chapter 11 - Working with Systemd Flashcards

1
Q

What is systemd in RHEL8?

A

The Systemd System and Service Manager is used
to start stuff. The stuff is referred to as units. Units can be many things. One of the most important unit types is the service. So systemd is used to start services, but not only services but also other units.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a service?

A

services are processes that provide specific functionality and allows connections from external clients coming in. Eg. SSH, Apache web server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Systemd is used to start units, What are the different unit types in RHEL 8?

A

Services, socket, mount, and target

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which command to use to display a list of units available?

A

systemctl -t help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the advantage of using systemd?

A

It provides a uniform interface to start units

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

systemd provides a uniform interface, This interface is defined in the unit file. Unit files can occur in three locations. Which are these?

A

/usr/lib/systemd/system
/etc/systemd/system
/run/systemd/system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a systemd mount unit?

A

A mount unit specifies how a file system can be mounted on a specific directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is a systemd target unit?

A

The unit files are used to build the functionality that is needed on your server. A simple definition of a target unit is “a group of units.”
Example - printer.target is an example of such a target; you can use it to easily start or stop all units that are required to provide printing functionality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command to display a list of existing dependencies?

A

systemctl list-dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly