X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=epanic-clean;h=4f365fda5aaf907dc66e69323166b0412c46fc72;hb=b18dade73dedfe69aa741f8417947d83c4208f2d;hp=9886cb1228980d1bb1b997efaf82d5166187115f;hpb=2b981100a8b45f117d6f5c165404937f3c917e8f;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