RHCSA Systemd and Service Management Flashcards
7 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 RHCSA Systemd and Service Management flashcards as text
Which systemd unit type is used to mount a filesystem defined in /etc/fstab at a specific path?
Answer: .mount
`.mount` units represent filesystem mount points and correspond to entries in `/etc/fstab`.
What is the purpose of `systemd-analyze blame`?
Answer: Lists each unit and the time it took to initialize during boot
`systemd-analyze blame` shows each service unit's initialization time, helping identify boot bottlenecks.
A `Type=forking` service unit is used when the process does what?
Answer: Daemonizes by forking and having the parent exit
`Type=forking` is for traditional daemons that fork a child process and exit the parent; systemd tracks the child.
Which command creates a systemd override file for `httpd.service` using a text editor?
Answer: systemctl edit httpd.service
`systemctl edit httpd.service` opens an editor for a drop-in override file without replacing the original unit.
What does `systemctl kill -s SIGKILL httpd.service` do differently from `systemctl stop httpd.service`?
Answer: It sends SIGKILL directly to all processes in the service's cgroup, bypassing ExecStop=
`systemctl kill` sends a signal directly to all cgroup members, while `stop` runs the `ExecStop=` sequence.
In a systemd `.socket` unit, which directive specifies the port or path the socket listens on?
Answer: ListenStream=
`ListenStream=` in a `.socket` unit defines the TCP port or Unix socket path for stream (TCP) socket activation.
Which target is equivalent to traditional runlevel 3 (multi-user, no GUI)?
Answer: multi-user.target
`multi-user.target` is the systemd equivalent of SysV runlevel 3: full multi-user mode without a graphical interface.