constantly firing timers cause systemd to think startup never finishes
[distro-setup] / epanic-clean
index 9886cb1228980d1bb1b997efaf82d5166187115f..4f365fda5aaf907dc66e69323166b0412c46fc72 100755 (executable)
@@ -126,12 +126,15 @@ spamassassin spam acl condition
 EOF
 }
 
-if [[ $INVOCATION_ID ]]; then
-  # this is to prevent systemd from filling up the journal
-  for (( runcount=0; runcount < 100; runcount++ )); do
+loop-main() {
+  while true; do
     main
     sleep 30
   done
+}
+
+if [[ $INVOCATION_ID ]]; then
+  loop-main
 else
   main
 fi