blob: b054e6b5a7e75ba0adf9449ce62f202b094b6b39 [file] [log] [blame]
#!/sbin/runscript
# 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}
}