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 2db752b..e3ecd67 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 21e249e..993f4ab 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