~dricottone/huttese-apk

ref: 21ba305adc8e5ed5d0484a39ea426afdfbefeb2a huttese-apk/sr.ht/go-msgauth/dkim-milter.initd -rw-r--r-- 793 bytes
21ba305a — Drew DeVault py3-cssselect2: remove; now in alpine community 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/sbin/openrc-run
name="dkim-milter"
description="Milter for DKIM signatures and verification"
supervisor=supervise-daemon
command=/usr/bin/dkim-milter
_domains=
for d in $dkim_sign_domains
do
	_domains="$_domains -d $d"
done
command_args="-l $dkim_listen_address -s $dkim_selector -k $dkim_key $_domains"
if [ -n "$dkim_host" ]
then
	command_args="$command_args -i $dkim_host"
fi
command_user="dkim:dkim"

start_pre() {
	[ -n "$output_log" ] && checkpath -f "$output_log" \
		-m 644 -o dkim:dkim
	[ -n "$error_log" ] && checkpath -f "$error_log" \
		-m 644 -o dkim:dkim
	if [ -z "$dkim_sign_domains" ] || [ -z "$dkim_key" ] || [ -z "$dkim_selector" ]
	then
		eerror "$RC_SVCNAME is not configured to sign any domains"
		eerror "Edit /etc/conf.d/$RC_SVCNAME before continuing"
		eend 1
	fi
}