LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemctl-enable

Enable unit auto-start at boot

TLDR

Enable a unit so it starts at boot
$ systemctl enable [unit]
copy
Enable and start immediately
$ systemctl enable --now [unit]
copy
Enable a user unit for the current user session lifecycle
$ systemctl enable --user [unit]
copy

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

INSTALL

sudo apt install systemd
copy
sudo dnf install systemd
copy
sudo pacman -S systemd
copy
sudo zypper install systemd
copy
brew install systemd
copy
nix profile install nixpkgs#systemd
copy

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid