From bebd83cfa622c0df4298d3681864bf7b3bec34fe Mon Sep 17 00:00:00 2001 From: Evilham Date: Thu, 16 May 2024 12:36:40 +0200 Subject: [PATCH] __opendkim: fix start_on_boot on FreeBSD There was a bit of an oddity with this, it is implemented in a way that should not be an issue for other systems. --- type/__opendkim/manifest | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/type/__opendkim/manifest b/type/__opendkim/manifest index dbd9fc0..b2bb05d 100755 --- a/type/__opendkim/manifest +++ b/type/__opendkim/manifest @@ -29,6 +29,7 @@ case "$os" in 'freebsd') CFG_DIR="/usr/local/etc/mail" service="milter-opendkim" + start_service="milteropendkim" ;; *) printf "__opendkim does not yet support %s.\n" "$os" >&2 @@ -90,7 +91,7 @@ fi require="__package/opendkim" __file "$target_file" \ --source "$source_file" --mode 0644 -require="__package/opendkim" __start_on_boot "${service}" +require="__package/opendkim" __start_on_boot "${start_service:-${service}}" # Ensure Key and Signing tables exist and have proper permissions key_table="${CFG_DIR}/KeyTable" @@ -105,7 +106,7 @@ require="__package/opendkim" \ --mode 444 require="__file${target_file} __file${key_table} - __file${signing_table} __start_on_boot/${service}" \ + __file${signing_table} __start_on_boot/${start_service:-${service}}" \ __check_messages opendkim \ --pattern "^__file${target_file}" \ --execute "service ${service} restart"