summaryrefslogtreecommitdiff
path: root/sysutils/puppet/files/puppetmasterd.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/puppetmasterd.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/puppetmasterd.in')
-rw-r--r--sysutils/puppet/files/puppetmasterd.in45
1 files changed, 0 insertions, 45 deletions
diff --git a/sysutils/puppet/files/puppetmasterd.in b/sysutils/puppet/files/puppetmasterd.in
deleted file mode 100644
index 230b551d4537..000000000000
--- a/sysutils/puppet/files/puppetmasterd.in
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: puppetmasterd
-# REQUIRE: NETWORK
-
-# Add the following lines to /etc/rc.conf to enable puppetmasterd:
-#
-# puppetmasterd_enable="YES"
-# puppetmasterd_confdir: Set to %%PREFIX%%/etc/puppet by default
-# puppetmasterd_flags: Set to "--pidfile ${puppetmasterd_pid}" by default
-#
-
-. /etc/rc.subr
-
-name="puppetmasterd"
-rcvar=`set_rcvar`
-
-command="%%PREFIX%%/sbin/${name}"
-command_interpreter="%%PREFIX%%/bin/ruby18"
-start_precmd="puppetmasterd_checkconfig"
-restart_precmd="puppetmasterd_checkconfig"
-
-puppetmasterd_checkconfig() {
- echo -n "Performing sanity check of ${name} configuration: "
- ${command} --parseonly ${puppetmasterd_flags} >/dev/null 2>&1
- rv=$?
- if [ $rv != 0 ]; then
- echo "FAILED, ${name} exited with status ${rv}"
- ${command} --parseonly ${puppetmasterd_flags}
- return 1
- else
- echo "OK"
- fi
-}
-
-load_rc_config "$name"
-: ${puppetmasterd_enable="NO"}
-: ${puppetmasterd_confdir="%%PREFIX%%/etc/puppet"}
-: ${puppetmasterd_pid="%%PUPPET_RUNDIR%%/${name}.pid"}
-: ${puppetmasterd_flags="--pidfile ${puppetmasterd_pid}"}
-pidfile="$puppetmasterd_pid"
-
-run_rc_command "$1"