From 3ebd1102ed17d3a013278128fbea23069051fefc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 10 Jul 2018 13:33:10 +0300 Subject: add `systemctl --failed` output --- cgi-bin/systemctl_failed_system.sh | 8 ++++++++ cgi-bin/systemctl_failed_user.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 cgi-bin/systemctl_failed_system.sh create mode 100755 cgi-bin/systemctl_failed_user.sh (limited to 'cgi-bin') diff --git a/cgi-bin/systemctl_failed_system.sh b/cgi-bin/systemctl_failed_system.sh new file mode 100755 index 0000000..39d3fc1 --- /dev/null +++ b/cgi-bin/systemctl_failed_system.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +echo 'Content-Type: text/plain; charset=utf-8' +echo + +SYSTEMD_COLORS=no systemctl list-units --failed --no-pager --full diff --git a/cgi-bin/systemctl_failed_user.sh b/cgi-bin/systemctl_failed_user.sh new file mode 100755 index 0000000..fe9ddc0 --- /dev/null +++ b/cgi-bin/systemctl_failed_user.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +echo 'Content-Type: text/plain; charset=utf-8' +echo + +SYSTEMD_COLORS=no systemctl --user list-units --failed --no-pager --full -- cgit v1.2.3