X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=epanic-clean;h=4f365fda5aaf907dc66e69323166b0412c46fc72;hb=7e673f2615101982a17ffa0e23cb10b5b3803f07;hp=9886cb1228980d1bb1b997efaf82d5166187115f;hpb=d4366929e6e200155b010dc05ce74255ee6a45ed;p=distro-setup diff --git a/epanic-clean b/epanic-clean index 9886cb1..4f365fd 100755 --- a/epanic-clean +++ b/epanic-clean @@ -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