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

systemctl reload-or-restart — Reload `systemd` unit(s) otherwise restart them. More information: <https://www.freedesktop.org/soft

Submitted by: @import:tldr-pages··
0
Viewed 0 times
systemdunitotherwisecommandrestartsystemctl reload-or-restartreloadcli
linux

Problem

How to use the systemctl reload-or-restart command: Reload systemd unit(s) otherwise restart them. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#reload-or-restart%20PATTERN%E2%80%A6>.

Solution

systemctl reload-or-restart — Reload systemd unit(s) otherwise restart them. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#reload-or-restart%20PATTERN%E2%80%A6>.

Reload or restart a unit:
systemctl reload-or-restart {{unit}}


Reload or restart multiple units matching a pattern:
systemctl reload-or-restart {{pattern}}


Run the command without waiting for the operation to complete:
systemctl reload-or-restart {{unit}} --no-block


Apply the command only to user units:
systemctl reload-or-restart {{unit}} --user

Code Snippets

Reload or restart a unit

systemctl reload-or-restart {{unit}}

Reload or restart multiple units matching a pattern

systemctl reload-or-restart {{pattern}}

Run the command without waiting for the operation to complete

systemctl reload-or-restart {{unit}} --no-block

Apply the command only to user units

systemctl reload-or-restart {{unit}} --user

Context

tldr-pages: linux/systemctl reload-or-restart

Revisions (0)

No revisions yet.