ports/sysutils/puppet37/files/puppet.in
Baptiste Daroussin 960ba21283 Add puppet37 to track the 3.7 branch puppet which is still supported
Simplify a bit the Makefile.
Remove patches related to unsupported the legacy package system
Unsilence install target
Merge do-install and post-install which has no reasons to be separated
Switch to full static plist
Keep the broken on ruby22 has I did not had a chance to test on ruby 2.2 yet

Sponsored by:	gandi.net
2015-06-22 09:45:28 +00:00

33 lines
581 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: puppet
# REQUIRE: NETWORK
# KEYWORD: shutdown
#
# 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"}
command="%%PREFIX%%/bin/puppet"
command_args="agent ${puppet_flags} --rundir=${puppet_rundir}"
command_interpreter=%%RUBY%%
unset puppet_flags
pidfile="${puppet_rundir}/agent.pid"
start_precmd="install -d -o puppet -g puppet ${pidfile%/*}"
run_rc_command "$1"