systemctl-preset
Reset unit enablement to defaults
TLDR
Reset to preset defaults
SYNOPSIS
systemctl preset [OPTIONS] UNIT...
DESCRIPTION
systemctl preset resets the enablement state of specified unit files to the defaults defined in preset policy files. Preset files in `/usr/lib/systemd/system-preset/` and `/etc/systemd/system-preset/` define which units should be enabled or disabled by default.
This is typically used after package installation to set the initial enablement state according to distribution policy.
PARAMETERS
--preset-mode= MODE
full (default), enable-only, or disable-only-q, --quiet
Suppress output, return only exit code--user
Operate on user units
CAVEATS
Preset policies are distribution-specific. Running preset on a unit may change whether it starts at boot. Use `--preset-mode` to limit changes to only enabling or disabling.
HISTORY
The preset subcommand implements policy-based enablement, allowing distributions to define default service states while letting administrators override them.
SEE ALSO
systemctl-preset-all(1), systemctl-enable(1), systemd.preset(5)
