diff options
author | Michael Mair-Keimberger <m.mairkeimberger@gmail.com> | 2018-02-13 19:44:37 +0100 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2018-02-13 13:03:54 -0600 |
commit | 75d25cc10ed8d8c53c582aaf76c6c27680ce3bdd (patch) | |
tree | cfb8d04189908e348cb1fe9b473252a60a6ec43f /app-admin | |
parent | dev-python/git-python: readding arm64 keyword (diff) | |
download | gentoo-75d25cc10ed8d8c53c582aaf76c6c27680ce3bdd.tar.gz gentoo-75d25cc10ed8d8c53c582aaf76c6c27680ce3bdd.tar.bz2 gentoo-75d25cc10ed8d8c53c582aaf76c6c27680ce3bdd.zip |
app-admin/puppetserver: remove unused file
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/puppetserver/files/puppetserver.initd | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/app-admin/puppetserver/files/puppetserver.initd b/app-admin/puppetserver/files/puppetserver.initd deleted file mode 100644 index 080dd2c8de28..000000000000 --- a/app-admin/puppetserver/files/puppetserver.initd +++ /dev/null @@ -1,71 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -extra_commands="checkconfig reload" - -LOGDIR="/var/log/puppetlabs/puppetserver" -RUNDIR="/run/puppetlabs/puppetserver" - -checkconfig() { - if [ ! -x $JAVA_BIN ]; then - eerror "Missing JAVA_BIN." - eend 1 - fi - if [ ! -d $INSTALL_DIR ]; then - eerror "Missing INSTALL_DIR." - eend 1 - fi - if [ ! -e $BOOTSTRAP_CONFIG ]; then - eerror "Missing BOOTSTRAP_CONFIG." - eend 1 - fi - if [ ! -e $CONFIG ]; then - eerror "Missing CONFIG." - eend 1 - fi - if [ ! -n $USER ]; then - eerror "Missing USER." - eend 1 - fi - if [ ! -n $GROUP ]; then - eerror "Missing GROUP." - eend 1 - fi - - checkpath -d -m 0755 "${LOGDIR%/*}" - checkpath -d -m 0755 "${RUNDIR%/*}" - checkpath -d -m 0700 -o "${USER}:${GROUP}" "${LOGDIR}" - checkpath -d -m 0755 -o "${USER}:${GROUP}" "${RUNDIR}" - - JAVA_ARGS="${JAVA_ARGS} -cp '${INSTALL_DIR}/puppet-server-release.jar' clojure.main -m puppetlabs.trapperkeeper.main --config ${CONFIG} -b '${BOOTSTRAP_CONFIG}'" - EXEC="${JAVA_BIN} -XX:OnOutOfMemoryError=\"kill -9 %p\" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetlabs/puppetserver -Djava.security.egd=/dev/urandom ${JAVA_ARGS}" -} - -start() { - checkconfig || return 1 - - ebegin "Starting Puppet Server" - start-stop-daemon --start -u "${USER}" -g "${GROUP}" \ - -m --pidfile "${RUNDIR}/puppetserver.pid" \ - -b --exec "/bin/bash" \ - -- -c "exec ${EXEC} >> ${LOGDIR}/daemon.log 2>&1" - local retval=$? - if [ $retval -ne 0 ]; then - ewarn "Error starting puppetserver." - fi - eend $retval -} - -stop() { - ebegin "Stopping Puppet Server" - start-stop-daemon --stop --pidfile "${RUNDIR}/puppetserver.pid" - eend $? -} - -reload() { - ebegin "Reloading Puppet Server" - start-stop-daemon --signal HUP --pidfile "${RUNDIR}/puppetserver.pid" - eend $? -} - |