blob: 4a5ae59ca03013d4cedae7c2b54eb73a057e8dbb (
plain)
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
|
#!/bin/sh
#
# PROVIDE: puppetd
# REQUIRE: NETWORK
# KEYWORD: FreeBSD shutdown
. /etc/rc.subr
name=puppetd
rcvar=`set_rcvar`
# set defaults
command=/usr/local/bin/puppetd
pidfile="/var/run/$name.pid"
#required_files="/usr/local/etc/$name.conf"
# read configuration and set defaults
load_rc_config "$name"
: ${puppetd_enable="NO"}
: ${puppetd_config="/usr/local/etc/puppet.conf"}
: ${puppetd_flags=""}
command_args="--config $puppetd_config $puppetd_flags"
run_rc_command "$1"
|