mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-12 03:21:17 +02:00
35 lines
658 B
Bash
35 lines
658 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: head/sysutils/puppet4/files/puppet.in 397822 2015-09-25 13:15:46Z mmoll $
|
|
#
|
|
|
|
# PROVIDE: puppet
|
|
# REQUIRE: LOGIN
|
|
# 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"
|
|
#EOF
|