#!/bin/sh
#
# $FreeBSD: ports/sysutils/puppet-devel/files/puppetd.in,v 1.4 2007/09/27 23:18:40 alepulver Exp $
#
# PROVIDE: puppetd
# REQUIRE: NETWORK
# Add the following lines to /etc/rc.conf to enable puppetd:
#
# puppetd_enable="YES"
. %%RC_SUBR%%
name="puppetd"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/${name}"
command_interpreter="%%PREFIX%%/bin/ruby18"
load_rc_config "$name"
: ${puppetd_enable="NO"}
: ${puppetd_confdir="%%PREFIX%%/etc/puppet"}
: ${puppetd_pid="/var/run/${name}.pid"}
: ${puppetd_flags="--confdir $puppetd_confdir --rundir /var/run"}
pidfile="$puppetd_pid"
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1