From: James Bunton Date: Sun, 11 Nov 2018 02:56:32 +0000 (+1100) Subject: v1.0.1 X-Git-Url: https://code.delx.au/systemd-monitor/commitdiff_plain/de7143a5b6599879ceeb223a63e279e1406e4594 v1.0.1 Don't fail if startup takes a while --- diff --git a/PKGBUILD b/PKGBUILD index 2db752b..e3ecd67 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,12 +1,12 @@ pkgbase="systemd-monitor" pkgname="systemd-monitor" pkgdesc="Monitor systemd state and email root if there is a problem" -pkgver=1.0.0 +pkgver=1.0.1 pkgrel=1 arch=("any") source=("systemd-monitor" "systemd-monitor.service") -md5sums=('956a73156e7edfdfc925aea2e7ed76ad' +md5sums=('17257b4fa3bfac90d90ea719f9e22375' 'bca0d235b9babc7ce5289fa5579f3d88') package() { diff --git a/systemd-monitor b/systemd-monitor index 21e249e..993f4ab 100755 --- a/systemd-monitor +++ b/systemd-monitor @@ -4,7 +4,9 @@ function get_state { systemctl show --property=SystemState } -sleep 60 +while [ "$(get_state)" = "SystemState=starting" ]; do + sleep 60 +done while [ "$(get_state)" = "SystemState=running" ]; do sleep 60