dd2ecb89fb
- Register puppet UID PR: ports/122628 Submitted by: Tomoyuki Sakurai <cherry@trombik.org> (maintainer)
26 lines
468 B
Bash
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"
|