Skip to content
Snippets Groups Projects
Commit 54c44ce6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs

parent 5da2f05e
No related branches found
No related tags found
Loading
......@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment