diff options
Diffstat (limited to 'sysutils/puppet/files/puppetmasterd.in')
-rw-r--r-- | sysutils/puppet/files/puppetmasterd.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/puppet/files/puppetmasterd.in b/sysutils/puppet/files/puppetmasterd.in new file mode 100644 index 000000000000..f97dcab3335b --- /dev/null +++ b/sysutils/puppet/files/puppetmasterd.in @@ -0,0 +1,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" |