freebsd-ports/mail/milter-greylist-devel/files/milter-greylist.in
Raphael Kubo da Costa f240a15710 Fix path to the milter-greylist binary in the startup script.
PR:		207185
Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk> (maintainer)
MFH:		2016Q1
2016-02-15 15:18:11 +00:00

33 lines
987 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: miltergreylist
# REQUIRE: LOGIN
# BEFORE: sendmail
# KEYWORD: milter-greylist
# Define these miltergreylist_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/miltergreylist
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
. /etc/rc.subr
name="miltergreylist"
rcvar=miltergreylist_enable
command="%%PREFIX%%/libexec/milter-greylist"
load_rc_config $name
miltergreylist_enable=${miltergreylist_enable-"NO"}
miltergreylist_runas=${miltergreylist_runas-"smmsp"}
miltergreylist_pidfile=${miltergreylist_pidfile-"/var/run/milter-greylist.pid"}
miltergreylist_sockfile=${miltergreylist_sockfile-"/var/milter-greylist/milter-greylist.sock"}
miltergreylist_cfgfile=${miltergreylist_cfgfile-"%%PREFIX%%/etc/mail/greylist.conf"}
miltergreylist_flags=${miltergreylist_flags-"-P $miltergreylist_pidfile \
-f $miltergreylist_cfgfile -p $miltergreylist_sockfile -u $miltergreylist_runas"}
run_rc_command "$1"