Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377557 - app-emulation/xen-tools-3.4.2 - xendomains should wait longer for screen initialisation [patch]
Summary: app-emulation/xen-tools-3.4.2 - xendomains should wait longer for screen init...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 12:58 UTC by Diego Augusto Molina
Modified: 2011-10-13 19:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
full patch for cvs (xen-3-sleep.patch,5.35 KB, patch)
2011-10-12 09:39 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Augusto Molina 2011-08-03 12:58:02 UTC
Hi, I struggled with this for a long time in the past. Turned out it needs a little time after creating the screen socket in order to start executing commands on that session. Otherwise it ends up saying there's no such session and halting the whole script (this is always reproducible). I solved it like this:

--- /usr/gentoo/PORTDIR/app-emulation/xen-tools/files/xendomains.initd-r1       2009-09-01 06:56:36.000000000 -0300
+++ /etc/init.d/xendomains      2011-08-02 12:58:41.597559633 -0300
@@ -38,7 +38,7 @@
        einfo "Starting Xen domains from ${AUTODIR:=/etc/xen/auto}"
        if using_screen ; then
                ebegin "Creating screen session to hold domain consoles"
-               (  screen -c ${SCREENRC:-/dev/null} -d -m -S ${SCREEN_NAME} -t dom0 \
+               (  screen -c ${SCREENRC:-/dev/null} -d -m -S ${SCREEN_NAME} -t dom0 && sleep 3 \
                && ${screen_cmd} zombie dr \
                && logrotate -f /etc/xen/xen-consoles.logrotate \
                && ${screen_cmd} logfile  /var/log/xen-consoles/%t.log \

That kept my systems going all this time. I had this problem since always and *always* forgot to report it with the corresponding solution (which I tested a lot).

Thanks.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-10-12 09:39:26 UTC
Created attachment 289643 [details, diff]
full patch for cvs
Comment 2 Alexey Shvetsov archtester gentoo-dev 2011-10-13 19:29:30 UTC
Fixed in tree