disable UNIT...

Action Removes all systemd-related symbolic links configured for the unit file, including those manually created. Disables all units listed in the Also= section. Example command systemctl disable enabled.service Options --now Purpose Stop the unit immediately after the linkage to start it is removed. Example systemctl disable --now runningandenabled.service --system Purpose Disables the unit for the system Example systemctl disable --system system.service --user Purpose Disables the unit for the currently logged in user...

August 22, 2022 · 1 min

enable UNIT..., enable PATH...

Action Installs a symbolic link as specified in the Install section of the unit file. Reloads the configuration in a manner equivalent to running the command systemctl daemon-reload. Options --now Purpose Start the service after it’s enabled. Example systemctl enable --now akings.service --system Purpose Enables the unit for the system Example systemctl enable --system system.service --user Purpose Enables the unit for the currently logged in user Example systemctl enable --user user....

August 22, 2022 · 1 min

list-unit-files [PATTERN...]

Action Prints a list of unit files installed on the system, and their state as reported by is-enabled. Note This command will show template units, which list-units does not.

August 22, 2022 · 1 min

preset UNIT...

Action Sets the enable/disable status for the unit file, with the defaults found in the preset policy files. Options --preset-mode=<mode> Purpose Override the preset mode. Options full enable-only disable-only Example Set the default preset to enable for any unit. systemctl preset-all --preset-mode=enable-only allgreen.service

August 22, 2022 · 1 min

preset-all

Action Sets the enable/disable status, for unit files with proper linkages, with the defaults found in the preset policy files. Options --preset-mode=<mode> Purpose Override the preset mode. Options full enable-only disable-only Example Set the default preset to enable for any unit. systemctl preset-all --preset-mode=enable-only allgreen.service

August 22, 2022 · 1 min

reenable UNIT...

Action Disables, and then enables the unit.

August 22, 2022 · 1 min