summaryrefslogtreecommitdiff
blob: 74a9f9b9c5d429510488ba6a8f8f3b43cb47c777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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}"
}