4.3.1 Flashcards
Changes the system state to the specified boot target. Changing boot targets with the systemctl command changes only the current system state. If the system is restarted, it will revert back to the default boot target.
systemctl isolate boot_target
Displays the current boot target.
systemctl get-default
Sets the default boot target, which is identified by the /etc/systemd/system/default.target file. This file is a symbolic link that points to a target file in /usr/lib/systemd/system that should be used by default when the system starts. This command modifies the target file that the default.target symbolic link points to.
systemctl set-default boot_target
You can use the________________ command to print a list of running units, listed in the order of time to initialize. Consider that initialization time includes the time a unit must wait for another unit to complete
systemd-analyze blame
The ________________ command does not report results for services that start immediately as indicated by type=simple.
systemd-analyze blame
Examples of resources controlled by unit files are:
Sockets
Devices
Mountpoints
Automount points
Filesystem
Targets
Each section within the unit file is formatted as
[Section]
Directive1=value
Directive2=value
Lists referencing documentation for this unit or its configuration.
Documentation=
Lists ‘yes’ or ‘no’. These are similar to implicit dependencies, but can be turned on and off by setting this option to yes or no.
DefaultDependencies=
Lists negative requirement dependencies. If a unit has a Conflicts= setting on another unit, starting the former will stop the latter and vice versa. Note that this setting is independent of to the After= and Before= ordering dependencies.
Conflicts=
Lists the units that must be activated for a unit to function. By default, the other units listed by a directive are activated at the same time as the unit.
Requires=
Lists the units to start before this unit is started.
After=
Lists the units to start after this unit is started.
Before=
Lists the units recommended to be in effect or started for the unit to function.
Wants=
Systemd categories units according to the type of resource they describe. The easiest way to determine the type of a unit is by the _________ appended to the end of the resource name
suffix type