mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 02:44:36 +00:00
26 lines
678 B
Plaintext
26 lines
678 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|