summaryrefslogtreecommitdiff
path: root/app-admin/puppet-agent/files/mcollective.initd
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/puppet-agent/files/mcollective.initd')
-rw-r--r--app-admin/puppet-agent/files/mcollective.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-admin/puppet-agent/files/mcollective.initd b/app-admin/puppet-agent/files/mcollective.initd
new file mode 100644
index 000000000000..6500cd878815
--- /dev/null
+++ b/app-admin/puppet-agent/files/mcollective.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MCOLLECTIVE_PID_DIR="${MCOLLECTIVE_PID_DIR:-/var/run/puppetlabs}"
+
+command="/usr/sbin/mcollectived"
+pidfile="${MCOLLECTIVE_PID_DIR}/mcollectived.pid"
+
+command_args="--pidfile ${pidfile} --config=/etc/puppetlabs/mcollective/server.cfg --daemonize"
+
+depend() {
+ need net
+}
+
+start_pre() {
+ checkpath --directory "${MCOLLECTIVE_PID_DIR}"
+}