systemctl-try-restart: add page (#18118)

systemctl-try-restart.md: add page
This commit is contained in:
Harshavardhan
2025-09-16 10:26:33 +05:30
committed by GitHub
parent 3c0a5c47c9
commit 8a3de69eea
+16
View File
@@ -0,0 +1,16 @@
# systemctl try-restart
> Restart one or more units only if they are currently running.
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#try-restart%20PATTERN%E2%80%A6>.
- Restart a specific unit if it is running:
`systemctl try-restart {{unit}}`
- Restart multiple units if they are running:
`systemctl try-restart {{unit1 unit2 ...}}`
- Restart all units matching a pattern if they are running:
`systemctl try-restart '{{pattern}}'`