freebsd-ports/sysutils/puppet-devel/files/puppetd.in
Pav Lucistnik dd2ecb89fb - Update to 0.24.4
- Register puppet UID

PR:		ports/122628
Submitted by:	Tomoyuki Sakurai <cherry@trombik.org> (maintainer)
2008-04-11 14:09:59 +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"