2007-04-13 15:37:08 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2007-04-17 21:41:20 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2007-04-13 15:37:08 +02:00
|
|
|
# PROVIDE: puppetd
|
|
|
|
# REQUIRE: NETWORK
|
|
|
|
|
|
|
|
# Add the following lines to /etc/rc.conf to enable puppetd:
|
|
|
|
#
|
2007-04-17 21:41:20 +02:00
|
|
|
# puppetd_enable="YES"
|
2007-04-13 15:37:08 +02:00
|
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
|
|
|
|
name="puppetd"
|
|
|
|
rcvar=`set_rcvar`
|
|
|
|
|
|
|
|
command="%%PREFIX%%/bin/${name}"
|
2007-04-17 21:41:20 +02:00
|
|
|
command_interpreter="%%PREFIX%%/bin/ruby18"
|
2007-04-13 15:37:08 +02:00
|
|
|
|
|
|
|
load_rc_config "$name"
|
|
|
|
: ${puppetd_enable="NO"}
|
2008-04-11 16:09:59 +02:00
|
|
|
: ${puppetd_pid="%%PUPPET_RUNDIR%%/${name}.pid"}
|
|
|
|
: ${puppetd_flags="--rundir %%PUPPET_RUNDIR%%"}
|
2007-04-13 15:37:08 +02:00
|
|
|
pidfile="$puppetd_pid"
|
|
|
|
|
|
|
|
run_rc_command "$1"
|