aports/openrc/opendkim/runfile
2021-02-08 12:11:55 +00:00

18 lines
561 B
Plaintext

#!/sbin/openrc-run
pidfile="${OPENDKIM_RUNTIME:-/run/opendkim}/${RC_SVCNAME}.pid"
command=/usr/sbin/opendkim
command_args="-l -P ${pidfile} -x ${OPENDKIM_CONF:-${OPENDKIM_CONFPATH}/opendkim.conf}"
command_user="${command_user:-opendkim:opendkim}"
depend() {
need net
after firewall mta syslog
}
start_pre() {
checkpath -d -o "$command_user" -m755 "${OPENDKIM_RUNTIME:-/run/opendkim}"
checkpath -d -o "$command_user" -m550 "${OPENDKIM_CONFPATH:-/etc/opendkim}"
checkpath -f -o "$command_user" -m440 "${OPENDKIM_CONFPATH:-/etc/opendkim}"/*-mail.private
}