2025-12-16 10:20:31 -07:00
|
|
|
# systemctl restart
|
|
|
|
|
|
|
|
|
|
> Stop and then start one or more systemd units.
|
|
|
|
|
> Can be used in place of `systemctl start` on a stopped unit, but `start` is safer so that a running unit isn't accidentally restarted.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#restart%20PATTERN%E2%80%A6>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Restart a unit:
|
|
|
|
|
|
|
|
|
|
`systemctl restart {{unit}}`
|
|
|
|
|
|
|
|
|
|
- Restart more than one unit:
|
|
|
|
|
|
|
|
|
|
`systemctl restart {{unit1 unit2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Restart a user unit:
|
|
|
|
|
|
|
|
|
|
`systemctl restart {{unit}} --user`
|