From 54c44ce6a86d47f1fb122b9d7d73a55f3bfdb617 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 3 Nov 2023 14:27:30 +0100 Subject: [PATCH] update docs --- docs/20_Checks/check_systemdunit.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/20_Checks/check_systemdunit.md b/docs/20_Checks/check_systemdunit.md index 884ccf9..3148753 100644 --- a/docs/20_Checks/check_systemdunit.md +++ b/docs/20_Checks/check_systemdunit.md @@ -16,7 +16,7 @@ A unit is everything listed by systemctl command - services, timers, targets, .. ______________________________________________________________________ CHECK_SYSTEMDUNIT -v1.6 +v1.7 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3 @@ -139,14 +139,14 @@ Here are a few examples for services with regex: ### Check a service with multiple instances -Systemd services with multiple instances contain an @ char. -In the list of the systemctl command the @ char is followed by a number of the instance. +Systemd services with multiple instances can be detected automatically. +In the list of the systemctl command the an instance by a number of the instance in the unit name. #### All instances -To check if all instances are running use ``@*`` at the end of the servicename (like you would do with ``systemctl status myservice@*``). +To check if all instances are running use ``*`` at the end of the servicename (like you would do with ``systemctl status myservice*``). -The command ``check_systemdunit myservice@*`` will return a status line how many active and existing instanecs were found: +The command ``check_systemdunit myservice*`` will return a status line how many active and existing instanecs were found: ```txt OK: 4 of 4 myservice@* units are active @@ -155,6 +155,6 @@ OK: 4 of 4 myservice@* units are active #### A single instance -To check if all instances are running use ``@[number]`` at the end of the servicename. +To check if all instances are running use ``myservice[number]`` at the end of the servicename. -The command ``check_systemdunit myservice@2`` checks the 2nd instance. It is handled like single service check. +The command ``check_systemdunit myservice2`` checks the 2nd instance. It is handled like single service check. -- GitLab