HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl reenable — Re-enable one or more units. Used when targets of a service change. More information: <https://www.f

Submitted by: @import:tldr-pages··
0
Viewed 0 times
unitscommandusedclisystemctl reenableenablemoreone
linux

Problem

How to use the systemctl reenable command: Re-enable one or more units. Used when targets of a service change. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#reenable%20UNIT%E2%80%A6>.

Solution

systemctl reenable — Re-enable one or more units. Used when targets of a service change. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#reenable%20UNIT%E2%80%A6>.

Re-enable a unit, restoring its default symlinks:
systemctl reenable {{unit}}


Re-enable multiple units at once:
systemctl reenable {{unit1 unit2 ...}}


Re-enable a unit and start it immediately:
systemctl reenable {{unit}} --now

Code Snippets

Re-enable a unit, restoring its default symlinks

systemctl reenable {{unit}}

Re-enable multiple units at once

systemctl reenable {{unit1 unit2 ...}}

Re-enable a unit and start it immediately

systemctl reenable {{unit}} --now

Context

tldr-pages: linux/systemctl reenable

Revisions (0)

No revisions yet.