summaryrefslogtreecommitdiff
path: root/app-admin/puppet/files/puppet.init-r1
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/puppet/files/puppet.init-r1
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/puppet/files/puppet.init-r1')
-rw-r--r--app-admin/puppet/files/puppet.init-r124
1 files changed, 24 insertions, 0 deletions
diff --git a/app-admin/puppet/files/puppet.init-r1 b/app-admin/puppet/files/puppet.init-r1
new file mode 100644
index 000000000000..36398d26fe2b
--- /dev/null
+++ b/app-admin/puppet/files/puppet.init-r1
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PUPPET_PID_DIR="${PUPPET_PID_DIR:-/var/run/puppet}"
+
+pidfile="${PUPPET_PID_DIR}/puppet.pid"
+PUPPET_LOG_DIR="/var/log/puppet"
+
+extra_started_commands="reload"
+
+command="/usr/bin/puppet"
+
+command_args="agent --pidfile ${pidfile} ${PUPPET_EXTRA_OPTS}"
+
+depend() {
+ need localmount
+ use dns logger puppetmaster netmount nfsmount
+}
+
+start_pre() {
+ checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}"
+ checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR}
+}