aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/puppet/files/puppetmasterd.in
blob: f97dcab3335b9013296c8a4f79153f719c1d9a8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:#!/bin/sh
#

# PROVIDE: puppetmasterd
# REQUIRE: NETWORK

# Add the following lines to /etc/rc.conf to enable puppetmasterd:
#
# puppetmasterd_enable="YES"

. %%RC_SUBR%%

name="puppetmasterd"
rcvar=`set_rcvar`

command="%%PREFIX%%/bin/${name}"
command_interpreter="${prefix}/bin/ruby18"

load_rc_config "$name"
: ${puppetmasterd_enable="NO"}
: ${puppetmasterd_confdir="%%PREFIX%%/etc/puppet"}
: ${puppetmasterd_pid="/var/run/puppet/${name}.pid"}
: ${puppetmasterd_flags="--confdir $puppetmasterd_confdir "}
command_args="$puppetmasterd_flags"
pidfile="$puppetmasterd_pid"

run_rc_command "$1"