ports/sysutils/puppet-devel/files/puppetd.in
Li-Wen Hsu 062c564b9f - Install rc.d scripts [1]
- Install default config file [1]
- Add PORTDOCS in pkg-plist [2]

PR:		110618 [1], 110543 [2]
Submitted by:	Tomoyuki Sakurai <cherry AT trombik.org> (maintainer) [1]
		Robert Gogolok <gogo AT cs.uni-sb.de> [2]
Approved by:	clsung (mentor)
2007-04-13 13:37:08 +00:00

27 lines
534 B
Bash

#!/bin/sh
#
# PROVIDE: puppetd
# REQUIRE: NETWORK
# Add the following lines to /etc/rc.conf to enable puppetd:
#
# puppetmasterd_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/puppet/${name}.pid"}
: ${puppetd_flags="--confdir $puppetd_confdir "}
command_args="$puppetd_flags"
pidfile="$puppetd_pid"
run_rc_command "$1"