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.service
--runtime
Purpose
Enables the unit for the current boot session
Example
systemctl enable --runtime thisbootonly.service
--global
Purpose
Enables the unit for the for all future logins of all users.
Example
systemctl enable --global pervasive.service