Fixes for FreeBSD

This commit is contained in:
Tube 2023-11-06 09:21:57 +01:00
parent 215c81f3ee
commit fcfe374832
1 changed files with 9 additions and 2 deletions

View File

@ -12,7 +12,6 @@ vars:
"uid" string => "opendkim";
"gid" string => "opendkim";
"cfg_file" string => "/etc/opendkim.conf";
#"pid_file" string => "/var/run/opendkim.pid";
"pid_file" string => "/run/opendkim/opendkim.pid";
centos::
@ -20,7 +19,6 @@ vars:
"uid" string => "opendkim";
"gid" string => "opendkim";
"cfg_file" string => "/etc/opendkim.conf";
#"pid_file" string => "/var/run/opendkim.pid";
"pid_file" string => "/run/opendkim/opendkim.pid";
freebsd::
@ -29,6 +27,7 @@ vars:
"gid" string => "mailnull";
"cfg_file" string => "/usr/local/etc/mail/opendkim.conf";
"pid_file" string => "/var/run/opendkim.pid";
"service_name" string => "milter-opendkim";
any::
@ -79,6 +78,14 @@ reports:
bundle agent opendkim_systemd_overrides
{
files:
freebsd::
"/etc/rc.conf.d/milteropendkim"
create=>"true",
content=>'
milteropendkim_uid="$(opendkim.cfg[uid])"
milteropendkim_gid="$(opendkim.cfg[gid])"
';
centos::
"/etc/systemd/system/opendkim.service.d/override.conf"