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