You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
758 B
30 lines
758 B
#!/sbin/openrc-run
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
PUPPET_PID_DIR="${PUPPET_PID_DIR:-/run/puppet}"
|
|
|
|
pidfile="${PUPPET_PID_DIR}/puppet.pid"
|
|
PUPPET_LOG_DIR="/var/log/puppetlabs/puppet"
|
|
|
|
command="/usr/bin/puppet"
|
|
extra_started_commands="reload"
|
|
|
|
command_args="agent --pidfile ${pidfile} --confdir /etc/puppetlabs/puppet ${PUPPET_EXTRA_OPTS}"
|
|
|
|
depend() {
|
|
need localmount
|
|
use dns logger puppetserver netmount nfsmount
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --directory --owner puppet:puppet "${PUPPET_PID_DIR}"
|
|
checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR}
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading $RC_SVCNAME"
|
|
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
eend $?
|
|
}
|