mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 09:36:34 +02:00
When user upgrade this package and do not update confd files, then it will still run as root, for backward compatibility.
23 lines
617 B
Bash
23 lines
617 B
Bash
#!/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
|
|
}
|