| Summary: | app-emulation/ganeti: clean init.d | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Zentoo <b4b1> |
| Component: | Current packages | Assignee: | Patrick McLean <chutzpah> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | major | CC: | b4b1, virtualization |
| Priority: | Normal | Keywords: | PMASKED |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Deadline: | 2020-09-21 | ||
| Attachments: |
patch for /etc/init.d/ganeti
patch for /usr/lib64/ganeti/2.14/ganeti/daemon-util /etc/init.d/ganeti patch removing duplicate code from /usr/lib/ganeti/daemon-util |
||
|
Description
Zentoo
2015-09-21 15:45:12 UTC
Created attachment 412462 [details, diff]
patch for /etc/init.d/ganeti
Created attachment 412464 [details, diff]
patch for /usr/lib64/ganeti/2.14/ganeti/daemon-util
the start-stop-daemon part of daemon-util patch could be apply to all ganeti version. Comment on attachment 412464 [details, diff]
patch for /usr/lib64/ganeti/2.14/ganeti/daemon-util
Obsolete
Comment on attachment 412462 [details, diff]
patch for /etc/init.d/ganeti
--- ganeti.orig 2016-09-21 14:39:04.187212153 +0200
+++ ganeti 2016-09-21 14:52:27.106047286 +0200
@@ -13,12 +13,6 @@
DAEMON_UTIL="/usr/lib/ganeti/daemon-util"
-is_master() {
- [ -z "${ganeti_master}" ] && ganeti_master="$(gnt-cluster getmaster)"
- [ -z "${local_hostname}" ] && local_hostname="$(hostname -f)"
- [ "${ganeti_master}" = "${local_hostname}" ]
-}
-
# This exists specifically for restarting a 2-node cluster where quorum might
# not be available.
forcestart() {
@@ -43,13 +37,8 @@
for daemon in $(${DAEMON_UTIL} list-start-daemons); do
optsvar="$(printf "${daemon}_OPTS" | tr - _ | LC_ALL=C tr '[:lower:]' '[:upper:]')"
-
- case "${daemon#ganeti-}" in
- masterd|rapi|luxid) is_master || continue;;
- esac
-
eval daemon_opts=\"\$\{${optsvar}\}\"
-
+
ebegin "Starting ${daemon}"
eindent
veinfo ${DAEMON_UTIL} start ${daemon} ${GANETI_OPTS} ${daemon_opts}
@@ -87,9 +76,6 @@
local daemon
for daemon in $(${DAEMON_UTIL} list-stop-daemons) ; do \
- case "${daemon#ganeti-}" in
- masterd|rapi|luxid) is_master || continue;;
- esac
${DAEMON_UTIL} stop ${daemon} ${GANETI_OPTS}
done
}
Created attachment 447034 [details, diff]
/etc/init.d/ganeti patch removing duplicate code from /usr/lib/ganeti/daemon-util
This patch works perfectly on ganeti-2.15.2-r5 in production here. removed. |