dd683ddda4
- Fix invalid variable and typos in rc.d script - add a patch which fixes external command to hang PR: 111764 Submitted by: Tomoyuki Sakurai <cherry@trombik.org> (maintainer)
27 lines
522 B
Bash
27 lines
522 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_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"
|