mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
f843024b9c
Pointed out by: Vlastimil Zeman <vlastimil.zeman@col.cz>
38 lines
610 B
Bash
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"
|