diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2007-04-13 21:37:08 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2007-04-13 21:37:08 +0800 |
commit | 7d879a9ce9f82df1a262311b0160bb7dccc34d08 (patch) | |
tree | 0a1f2c81a95ca3457c0f3de46e8510c64f4b4656 /sysutils/puppet-devel/files/puppetmasterd.in | |
parent | 68f551ea60b44b9bd3b2461521dc3a84e9ae146c (diff) | |
download | freebsd-ports-gnome-7d879a9ce9f82df1a262311b0160bb7dccc34d08.tar.gz freebsd-ports-gnome-7d879a9ce9f82df1a262311b0160bb7dccc34d08.tar.zst freebsd-ports-gnome-7d879a9ce9f82df1a262311b0160bb7dccc34d08.zip |
- Install rc.d scripts [1]
- 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)
Diffstat (limited to 'sysutils/puppet-devel/files/puppetmasterd.in')
-rw-r--r-- | sysutils/puppet-devel/files/puppetmasterd.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/puppet-devel/files/puppetmasterd.in b/sysutils/puppet-devel/files/puppetmasterd.in new file mode 100644 index 000000000000..f97dcab3335b --- /dev/null +++ b/sysutils/puppet-devel/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" |