diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-29 18:01:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-29 18:01:47 +0000 |
commit | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch) | |
tree | 9f47ee47c31a0f13f9496879cd88a1042550aa81 /app-admin/puppet/files/puppet.init | |
parent | 53cba99042fa967e2a93da9f8db806fe2d035543 (diff) |
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'app-admin/puppet/files/puppet.init')
-rw-r--r-- | app-admin/puppet/files/puppet.init | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/app-admin/puppet/files/puppet.init b/app-admin/puppet/files/puppet.init deleted file mode 100644 index d30367ad3fb2..000000000000 --- a/app-admin/puppet/files/puppet.init +++ /dev/null @@ -1,40 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need localmount net - use dns logger puppetmaster netmount nfsmount -} - -checkconfig() { - if [ ! -d "${PUPPET_PID_DIR}" ] ; then - eerror "Please make sure PUPPET_PID_DIR is defined and points to a existing directory" - return 1 - fi - - return 0 -} - -start() { - checkconfig || return $? - - local options="" - [ -n "${PUPPET_EXTRA_OPTS}" ] && options="${options} ${PUPPET_EXTRA_OPTS}" - - ebegin "Starting puppet" - start-stop-daemon --start --quiet \ - --pidfile "${PUPPET_PID_DIR}/agent.pid" \ - --exec /usr/bin/puppetd -- ${options} - eend $? "Failed to start puppet" -} - -stop() { - ebegin "Stopping puppet" - start-stop-daemon --stop --quiet \ - --pidfile "${PUPPET_PID_DIR}/agent.pid" - local ret=$? - eend ${ret} "Failed to stop puppet" - rm -f "${PUPPET_PID_DIR}/agent.pid" - return ${ret} -} |