systemd-installsystemdDeveloperLennartPoetteringlennart@poettering.netsystemd-install1systemd-installEnable or disable a systemd unit
definition filesystemd-install optionsenablenamesystemd-install optionsdisablenamesystemd-install optionstestnameDescriptionsystemd-install enables or
disables systemd units, or checks whether they are
enabled.OptionsThe following options are understood:Prints a short help
text and exits.Enable/disable a
service even if it conflicts
with/contradicts another service. This
might have the effect of disabling
another service that was
enabled.Enable/disable a
system service.Enable/disable a
session service for the calling
user.Enable/disable a
session service for all
users.The following verbs are understood:enableEnable a unit. This
will create a number of symlinks as
encoded in the [Install] section of a
unit file.disableDisable a unit. This
will removed a number of symlinks as
encoded in the [Install] section of a
unit file.testChecks whether any of
the units specified are
installed. This will check for the
existance of a number of symlinks as
encoded in the [Install] section of a
unit file.Exit statusOn success 0 is returned, a non-zero failure
code otherwise.See Alsosystemctl1,
systemd.unit5