1 |
commit: 75d25cc10ed8d8c53c582aaf76c6c27680ce3bdd |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 13 18:44:37 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 13 19:03:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75d25cc1 |
7 |
|
8 |
app-admin/puppetserver: remove unused file |
9 |
|
10 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
11 |
|
12 |
app-admin/puppetserver/files/puppetserver.initd | 71 ------------------------- |
13 |
1 file changed, 71 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/puppetserver/files/puppetserver.initd b/app-admin/puppetserver/files/puppetserver.initd |
16 |
deleted file mode 100644 |
17 |
index 080dd2c8de2..00000000000 |
18 |
--- a/app-admin/puppetserver/files/puppetserver.initd |
19 |
+++ /dev/null |
20 |
@@ -1,71 +0,0 @@ |
21 |
-#!/sbin/openrc-run |
22 |
-# Copyright 1999-2015 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-extra_commands="checkconfig reload" |
26 |
- |
27 |
-LOGDIR="/var/log/puppetlabs/puppetserver" |
28 |
-RUNDIR="/run/puppetlabs/puppetserver" |
29 |
- |
30 |
-checkconfig() { |
31 |
- if [ ! -x $JAVA_BIN ]; then |
32 |
- eerror "Missing JAVA_BIN." |
33 |
- eend 1 |
34 |
- fi |
35 |
- if [ ! -d $INSTALL_DIR ]; then |
36 |
- eerror "Missing INSTALL_DIR." |
37 |
- eend 1 |
38 |
- fi |
39 |
- if [ ! -e $BOOTSTRAP_CONFIG ]; then |
40 |
- eerror "Missing BOOTSTRAP_CONFIG." |
41 |
- eend 1 |
42 |
- fi |
43 |
- if [ ! -e $CONFIG ]; then |
44 |
- eerror "Missing CONFIG." |
45 |
- eend 1 |
46 |
- fi |
47 |
- if [ ! -n $USER ]; then |
48 |
- eerror "Missing USER." |
49 |
- eend 1 |
50 |
- fi |
51 |
- if [ ! -n $GROUP ]; then |
52 |
- eerror "Missing GROUP." |
53 |
- eend 1 |
54 |
- fi |
55 |
- |
56 |
- checkpath -d -m 0755 "${LOGDIR%/*}" |
57 |
- checkpath -d -m 0755 "${RUNDIR%/*}" |
58 |
- checkpath -d -m 0700 -o "${USER}:${GROUP}" "${LOGDIR}" |
59 |
- checkpath -d -m 0755 -o "${USER}:${GROUP}" "${RUNDIR}" |
60 |
- |
61 |
- JAVA_ARGS="${JAVA_ARGS} -cp '${INSTALL_DIR}/puppet-server-release.jar' clojure.main -m puppetlabs.trapperkeeper.main --config ${CONFIG} -b '${BOOTSTRAP_CONFIG}'" |
62 |
- EXEC="${JAVA_BIN} -XX:OnOutOfMemoryError=\"kill -9 %p\" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/puppetlabs/puppetserver -Djava.security.egd=/dev/urandom ${JAVA_ARGS}" |
63 |
-} |
64 |
- |
65 |
-start() { |
66 |
- checkconfig || return 1 |
67 |
- |
68 |
- ebegin "Starting Puppet Server" |
69 |
- start-stop-daemon --start -u "${USER}" -g "${GROUP}" \ |
70 |
- -m --pidfile "${RUNDIR}/puppetserver.pid" \ |
71 |
- -b --exec "/bin/bash" \ |
72 |
- -- -c "exec ${EXEC} >> ${LOGDIR}/daemon.log 2>&1" |
73 |
- local retval=$? |
74 |
- if [ $retval -ne 0 ]; then |
75 |
- ewarn "Error starting puppetserver." |
76 |
- fi |
77 |
- eend $retval |
78 |
-} |
79 |
- |
80 |
-stop() { |
81 |
- ebegin "Stopping Puppet Server" |
82 |
- start-stop-daemon --stop --pidfile "${RUNDIR}/puppetserver.pid" |
83 |
- eend $? |
84 |
-} |
85 |
- |
86 |
-reload() { |
87 |
- ebegin "Reloading Puppet Server" |
88 |
- start-stop-daemon --signal HUP --pidfile "${RUNDIR}/puppetserver.pid" |
89 |
- eend $? |
90 |
-} |
91 |
- |