- Fix rc.subr script

PR:		100055
Submitted by:	delphij (Xin LI)
This commit is contained in:
Dirk Meyer 2006-07-11 05:17:07 +00:00
parent 877f6dd7ea
commit 32f9d8efd0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167436
2 changed files with 11 additions and 9 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= sid-milter PORTNAME= sid-milter
PORTVERSION= 0.2.13 PORTVERSION= 0.2.13
PORTREVISION= 1
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sid-milter MASTER_SITE_SUBDIR= sid-milter

View file

@ -13,24 +13,25 @@
# /etc/rc.conf.local # /etc/rc.conf.local
# /etc/rc.conf.d/miltersid # /etc/rc.conf.d/miltersid
# #
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
miltersid_enable=${miltersid_enable:-"NO"}
miltersid_socket=${miltersid_socket:-"local:/var/run/sid-filter"}
miltersid_pid=${miltersid_pid:-"/var/run/sid-filter.pid"}
miltersid_flags=${miltersid_flags:-"-r 0 -t"}
. %%RC_SUBR%% . %%RC_SUBR%%
name="miltersid" name="miltersid"
pidfile=${miltersid_pid}
rcvar=`set_rcvar` rcvar=`set_rcvar`
load_rc_config $name
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
: ${miltersid_enable="NO"}
: ${miltersid_socket="local:/var/run/sid-filter"}
: ${miltersid_pid="/var/run/sid-filter.pid"}
: ${miltersid_flags="-r 0 -t"}
pidfile=${miltersid_pid}
command="%%PREFIX%%/libexec/sid-filter" command="%%PREFIX%%/libexec/sid-filter"
command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}" command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}"
stop_postcmd="sid_postcmd" stop_postcmd="sid_postcmd"
load_rc_config $name
sid_postcmd () sid_postcmd ()
{ {
if [ -S ${miltersid_socket##local:} ] ; then if [ -S ${miltersid_socket##local:} ] ; then