diff options
author | Florian Dold <florian@dold.me> | 2024-03-13 20:51:21 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-13 20:51:21 +0100 |
commit | d19fa61d38d1537759e47edeca476d08b6ff7580 (patch) | |
tree | 0aed05174d53349ef7bf4e373a220f1ff75c2fcc | |
parent | d89a7daf31d5d25bae7600c38479858e45eed1c1 (diff) | |
download | deployment-dev/dold/regio-diagnostics.tar.gz deployment-dev/dold/regio-diagnostics.tar.bz2 deployment-dev/dold/regio-diagnostics.zip |
-rwxr-xr-x | regional-currency/diagnose.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regional-currency/diagnose.sh b/regional-currency/diagnose.sh index b289151..b76deca 100755 --- a/regional-currency/diagnose.sh +++ b/regional-currency/diagnose.sh @@ -113,8 +113,8 @@ for unit in ${all_units[@]}; do done for unit in ${all_units[@]}; do - num_warnings=$(systemctl -u "$unit" | grep WARNING | wc -l) - num_errors=$(systemctl -u "$unit" | grep ERROR | wc -l) + num_warnings=$(journalctl -u "$unit" | grep WARNING | wc -l) + num_errors=$(journalctl -u "$unit" | grep ERROR | wc -l) if [[ ( $num_errors -eq 0 ) && ( $num_warnings -eq 0 ) ]]; then continue fi |