summaryrefslogtreecommitdiff
path: root/sysutils/puppet/files/puppet.in
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2010-08-04 17:06:24 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2010-08-04 17:06:24 +0000
commit43e71a5c00f03867cac23c75ec16ffdb09f24e0e (patch)
treec31c5f005477a7588c145fa3eb2c77eb24ec268b /sysutils/puppet/files/puppet.in
parent- Update to 0.18.7 (diff)
- Update to 2.6.1rc1
PR: ports/149213 Submitted by: Russell Jackson <raj AT csub.edu> (maintainer)
Notes
Notes: svn path=/head/; revision=258784
Diffstat (limited to 'sysutils/puppet/files/puppet.in')
-rw-r--r--sysutils/puppet/files/puppet.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/sysutils/puppet/files/puppet.in b/sysutils/puppet/files/puppet.in
new file mode 100644
index 000000000000..069361f0b113
--- /dev/null
+++ b/sysutils/puppet/files/puppet.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: puppet
+# REQUIRE: NETWORK
+
+#
+# Add the following lines to /etc/rc.conf to enable the puppet agent:
+#
+# puppet_enable="YES"
+
+. /etc/rc.subr
+
+name="puppet"
+rcvar=`set_rcvar`
+
+load_rc_config "$name"
+
+: ${puppet_enable="NO"}
+: ${puppet_rundir="%%PUPPET_RUNDIR%%"}
+: ${puppet_flags=""}
+
+command_interpreter="%%PREFIX%%/bin/ruby18"
+command="%%PREFIX%%/bin/puppet"
+command_args="agent ${puppet_flags}"
+unset puppet_flags
+
+pidfile="${puppet_rundir}/agent.pid"
+
+run_rc_command "$1"