From 8a3de69eeac078a11054be794bf4a54ca46b422e Mon Sep 17 00:00:00 2001 From: Harshavardhan Date: Tue, 16 Sep 2025 10:26:33 +0530 Subject: [PATCH] systemctl-try-restart: add page (#18118) systemctl-try-restart.md: add page --- pages/linux/systemctl-try-restart.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/systemctl-try-restart.md diff --git a/pages/linux/systemctl-try-restart.md b/pages/linux/systemctl-try-restart.md new file mode 100644 index 0000000000..44d5714d1f --- /dev/null +++ b/pages/linux/systemctl-try-restart.md @@ -0,0 +1,16 @@ +# systemctl try-restart + +> Restart one or more units only if they are currently running. +> More information: . + +- 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}}'`