mirror of
https://git.freebsd.org/ports.git
synced 2025-06-24 06:00:30 -04:00
- Install default config file [1] - Add PORTDOCS in pkg-plist [2] PR: 110618 [1], 110543 [2] Submitted by: Tomoyuki Sakurai <cherry AT trombik.org> (maintainer) [1] Robert Gogolok <gogo AT cs.uni-sb.de> [2] Approved by: clsung (mentor)
27 lines
534 B
Bash
27 lines
534 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
# PROVIDE: puppetd
|
|
# REQUIRE: NETWORK
|
|
|
|
# Add the following lines to /etc/rc.conf to enable puppetd:
|
|
#
|
|
# puppetmasterd_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_confdir="%%PREFIX%%/etc/puppet"}
|
|
: ${puppetd_pid="/var/run/puppet/${name}.pid"}
|
|
: ${puppetd_flags="--confdir $puppetd_confdir "}
|
|
command_args="$puppetd_flags"
|
|
pidfile="$puppetd_pid"
|
|
|
|
run_rc_command "$1"
|