freebsd-ports/sysutils/puppet27/files/puppet.in
Steve Wills 8b3517b3bb - Update puppet to 3.0.1
- Add sysutils/puppet27 for those who will still need the older version

Feature safe:	yes
2012-10-22 13:39:41 +00:00

32 lines
536 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: puppet
# REQUIRE: NETWORK
#
# Add the following lines to /etc/rc.conf to enable the puppet agent:
#
# puppet_enable="YES"
. /etc/rc.subr
name="puppet"
rcvar=puppet_enable
load_rc_config "$name"
: ${puppet_enable="NO"}
: ${puppet_rundir="/var/run/puppet"}
: ${puppet_flags="--rundir=${puppet_rundir}"}
command_interpreter="%%PREFIX%%/bin/ruby18"
command="%%PREFIX%%/bin/puppet"
command_args="agent ${puppet_flags}"
unset puppet_flags
pidfile="${puppet_rundir}/agent.pid"
run_rc_command "$1"