constantly firing timers cause systemd to think startup never finishes
[distro-setup] / btrfsmaint
index bcad450bad786b99cf372a9f20142f98d923573c..6c7dbb1f6788119cafa9cac1dc2cae559cd2c07b 100755 (executable)
@@ -140,12 +140,15 @@ main() {
   done
 }
 
-if $check; then
-  # this is to prevent systemd from filling up the journal
-  for (( runcount=0; runcount < 90; runcount++ )); do
+loop-main() {
+  while true; do
     main
     sleep 60
   done
+}
+
+if $check; then
+  loop-main
 else
   main
 fi