mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 06:51:34 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/systemctl-try-restart
Normal file
21
tldr/linux/systemctl-try-restart
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}'`
|
||||
Reference in New Issue
Block a user