diff --git a/scripts/opendkim.sh b/scripts/opendkim.sh index 489af14..b5fa071 100644 --- a/scripts/opendkim.sh +++ b/scripts/opendkim.sh @@ -1,8 +1,17 @@ #!/bin/sh + +noop() { + while true; do + # 2147483647 = max signed 32-bit integer + # 2147483647 s ≅ 70 years + sleep infinity || sleep 2147483647 + done +} + if [ ! -d /etc/opendkim/keys ]; then - sleep 9999999999999999999 + noop elif [ -z "$(find /etc/opendkim/keys -type f ! -name .)" ]; then - sleep 9999999999999999999 + noop else /usr/sbin/opendkim -D -f -x /etc/opendkim/opendkim.conf fi