freebsd-ports/sysutils/puppet/files/puppetd.in
Beech Rintoul 759f527ce5 - Update to 0.24.4 (backport from sysutils/puppet-devel)
- Use NOPORTEXAMPLES and NOPORTDOCS correctly, fixing bad plist (Reported by: QA Tindy)

PR:		ports/125847
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org> (maintainer)
2008-07-24 19:19:49 +00:00

26 lines
468 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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_pid="%%PUPPET_RUNDIR%%/${name}.pid"}
: ${puppetd_flags="--rundir %%PUPPET_RUNDIR%%"}
pidfile="$puppetd_pid"
run_rc_command "$1"