]> code.delx.au - systemd-monitor/commitdiff
v1.0.1
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 11 Nov 2018 02:56:32 +0000 (13:56 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 11 Nov 2018 02:56:32 +0000 (13:56 +1100)
Don't fail if startup takes a while

PKGBUILD
systemd-monitor

index 2db752be3e175e1c0c8211794929bbc0a5f56188..e3ecd67286a6201d9074c27a1c2ec5aa6d2ede7f 100644 (file)
--- 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() {
index 21e249eff4672d0d59b48d598c087b80da72942c..993f4ab21f7bbc572fb9893df2ecaf87a4aba7ca 100755 (executable)
@@ -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