diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-23 01:58:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-23 01:58:14 +0000 |
commit | 4921f12d049de1487e17383a32da50a03ea90d65 (patch) | |
tree | f96cddb6d290801562042528ed52a4a95d24afd1 /app-admin/puppet/files/puppet.init | |
parent | 7ef0a54f9e5cc53b6f0eb75144a94d0ad98aeef5 (diff) |
gentoo auto-resync : 23:12:2022 - 01:58:14
Diffstat (limited to 'app-admin/puppet/files/puppet.init')
-rw-r--r-- | app-admin/puppet/files/puppet.init | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-admin/puppet/files/puppet.init b/app-admin/puppet/files/puppet.init new file mode 100644 index 000000000000..ad7a638bebb8 --- /dev/null +++ b/app-admin/puppet/files/puppet.init @@ -0,0 +1,29 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# 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/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 puppetmaster 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 SIGHUP --pidfile "${pidfile}" + eend $? +} |