diff options
| -rw-r--r-- | conf/freebsd/puppetmasterd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/conf/freebsd/puppetmasterd b/conf/freebsd/puppetmasterd new file mode 100644 index 000000000..6f217dc8c --- /dev/null +++ b/conf/freebsd/puppetmasterd @@ -0,0 +1,26 @@ +#!/bin/sh +# + +# PROVIDE: puppetmasterd +# REQUIRE: NETWORK +# KEYWORD: FreeBSD shutdown + +. /etc/rc.subr + +name=puppetmasterd +rcvar=`set_rcvar` + +# set defaults +command=/usr/local/bin/puppetmasterd +pidfile="/var/run/$name.pid" +#required_files="/usr/local/etc/$name.conf" + +# read configuration and set defaults +load_rc_config "$name" +: ${puppetmasterd_enable="NO"} +: ${puppetmasterd_config="/usr/local/etc/puppetmasterd.conf"} +: ${puppetmasterd_flags=""} + +command_args="--config $puppetmasterd_config $puppetmasterd_flags" + +run_rc_command "$1" |
