#!/bin/sh
#
# $FreeBSD: ports/mail/popular/files/pcheckd.sh.in,v 1.2 2007/03/27 22:17:11 pav Exp $
#
# PROVIDE: pcheckd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
# /etc/rc.conf lines:
# pcheckd_enable="YES" # enable pcheckd
# pcheckd_user="pop" # user for pcheckd
. %%RC_SUBR%%
name="pcheckd"
rcvar=`set_rcvar`
load_rc_config $name
: ${pcheckd_enable="NO"}
: ${pcheckd_user="pop"}
command="%%PREFIX%%/sbin/pcheckd"
start_precmd="${name}_prestart"
extra_commands="reload"
pproxy_prestart()
{
mkdir -p /var/log/popular
chown ${pcheckd_user} /var/log/popular
mkdir -p /var/run/popular
chown ${pcheckd_user} /var/run/popular
}
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1