1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/mail/popular/files/pcheckd.sh.in
Pav Lucistnik f843024b9c - Fix rc.subr scripts
Pointed out by:	Vlastimil Zeman <vlastimil.zeman@col.cz>
2007-03-27 22:17:11 +00:00

38 lines
610 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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"