You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-filter/policyd-weight/files/policyd-weight.init.d-r2

32 lines
390 B

#!/sbin/openrc-run
extra_started_commands="reload"
daemon="policyd-weight"
exec="/usr/libexec/postfix/policyd-weight"
pidfile=/run/policyd-weight.pid
depend(){
before postfix
use net
}
start(){
ebegin "Starting ${daemon}"
${exec} start
eend $?
}
stop(){
ebegin "Stopping ${daemon}"
${exec} -k stop
eend $?
}
reload(){
ebegin "Reloading ${daemon}"
${exec} reload
eend $?
}