Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b6c9153c8f9eeb9ae900cdad51cc6380ed92cbaa)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b6c9153c8f9eeb9ae900cdad51cc6380ed92cbaa)
  • Date: Tue, 11 Dec 2012 12:18:29 -0600

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

utils/xen/DETAILS | 1 +
utils/xen/HISTORY | 5 +++++
utils/xen/init.d/xendomains | 15 ++++++++++++---
3 files changed, 18 insertions(+), 3 deletions(-)

New commits:
commit b6c9153c8f9eeb9ae900cdad51cc6380ed92cbaa
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

xen: corrected detection of running domUs after instant poweroff/reboot

diff --git a/utils/xen/DETAILS b/utils/xen/DETAILS
index 8ce05b5..f48118c 100755
--- a/utils/xen/DETAILS
+++ b/utils/xen/DETAILS
@@ -1,6 +1,7 @@
SPELL=xen
VERSION=4.1.3
SECURITY_PATCH=5
+ PATCHLEVEL=1
SOURCE=${SPELL}-${VERSION}.tar.gz
SOURCE2=$SOURCE.sig
SOURCE2_IGNORE=signature
diff --git a/utils/xen/HISTORY b/utils/xen/HISTORY
index 16bd6aa..65146a9 100644
--- a/utils/xen/HISTORY
+++ b/utils/xen/HISTORY
@@ -1,3 +1,8 @@
+2012-12-11 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS: PATCHLEVEL=1
+ * init.d/xendomains: corrected detection of running domUs after
instant
+ poweroff/reboot
+
2012-12-09 Vlad Glagolev <stealth AT sourcemage.org>
* DEPENDS: added gnutls optional dependency

diff --git a/utils/xen/init.d/xendomains b/utils/xen/init.d/xendomains
index 75cc264..7a4ff0b 100755
--- a/utils/xen/init.d/xendomains
+++ b/utils/xen/init.d/xendomains
@@ -60,13 +60,22 @@ function is_running()
$CMD list "${1}" >/dev/null 2>&1
}

-start()
+function is_running_doms()
+{
+ $CMD list | tail -n +2 | grep -v -E "^Domain-0[[:space:]]+0" > /dev/null
+}
+
+start()
{
check_userland

if [ -f $LOCKFILE ]; then
- echo -e "XEN: xendomains already running (lockfile exists)"
- exit 0
+ if is_running_doms; then
+ echo -e "XEN: xendomains already running (lockfile exists)"
+ exit 0
+ else
+ rm -f $LOCKFILE
+ fi
fi

if [ $(ls ${XENDOMAINS_AUTO} | wc -l) == 0 ]; then



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b6c9153c8f9eeb9ae900cdad51cc6380ed92cbaa), Vlad Glagolev, 12/11/2012

Archive powered by MHonArc 2.6.24.

Top of Page