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

Merge branch '6784-detect-multiple-systemd-instances' into 'master'

fix status line for single unit

See merge request !205
parents a912d6b5 598c4736
No related branches found
No related tags found
1 merge request!205fix status line for single unit
......@@ -153,7 +153,7 @@ if [ $_iActive -eq 0 ]; then
ph.setStatus critical
else
typeset -i _iInstances; _iInstances=$( grep -c "Loaded: " <<< "${_data}" )
if [ $_iInstances -gt 0 ]; then
if [ $_iInstances -gt 1 ]; then
_status="$_iActive of $_iInstances ${_unit} units are active"
_out="$_data"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment