#!/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"