systemctl-enable
TLDR
Enable a service to run on boot
SYNOPSIS
systemctl [OPTIONS...] enable UNIT...
DESCRIPTION
systemctl enable creates symbolic links in systemd directories to enable units to start automatically at boot (for system units) or at login (for user units). This does not start the unit immediately; use --now to both enable and start.
The symlinks are created based on the [Install] section of the unit file, typically linking into target.wants directories. Enabling is idempotent; enabling an already-enabled unit has no effect.
PARAMETERS
--now
Also start the unit after enabling--user
Enable user service manager units instead of system units--no-reload
Do not reload systemd configuration after enabling--force
Enable units even if they are masked--runtime
Enable temporarily until next reboot only
CAVEATS
Requires root privileges for system units. Enabling does not start the unit; combine with --now or use systemctl start separately. Masked units cannot be enabled without --force.
SEE ALSO
systemctl(1), systemctl-disable(1), systemctl-start(1)
