summaryrefslogtreecommitdiff
path: root/main/dkimproxy/dkimproxy.out.initd
blob: ed8fdc356ac727e28e33658ebcfd929f279a2ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run

# Upper case variables are here only for backward compatibility.
: ${cfgfile:=${CONFIGFILE:-"/etc/dkimproxy/dkimproxy_out.conf"}}
: ${user:="root"}  # root is default just for backward compatibility
: ${group:="$user"}

description="SMTP proxy that verifies signature on outgoing messages"

command="/usr/sbin/dkimproxy.out"
command_args="--conf_file=$cfgfile ${command_args:-${OPTS:-}}"
command_background="yes"

pidfile="/run/$RC_SVCNAME.pid"
start_stop_daemon_args="--user $user --group $group"

required_files="$cfgfile"

depend() {
	need net
	before opensmtpd postfix smtpd
	after firewall
}