Xendomains init script goes in an infinite loop
Hello,
since i moved to 3.1 i realised mu domains were not starting on their
own anymore.
i have found the time to look into it and actually the startup does not
finish because Xendomains init script never ends.
The reason has to do with te screen session creation:
it can be decomposed in 2 items on the same line of script:
1/ there is a typo (present in 3.1 and still in master) around line 40 :
while ! ${screen_cmd} dettach; do@
“detach” needs only 1 t as can be double checked in the screen man page
2/ in the same line of code, it seems the test should be inverted or even changed totally :
alpine-xen:~# screen -list
There is a screen on:
1962.xen (Detached)
1 Socket in /tmp/screens/S-root.
alpine-xen:~# screen -c /dev/null -q -r xen -X detach; echo $?
0
alpine-xen:~# screen -c /dev/null -r xen -X detach; echo $?
0
alpine-xen:~# screen -c /dev/null -r xen -X deta; echo $?
0
alpine-xen:~# screen -c /dev/null -r xeggg; echo $?
There is no screen to be resumed matching xeggg.
1
which means it does not go out of the while loop ever (see also attached file)
(from redmine: issue id 4394, created on 2015-06-28)
- Changesets:
- Revision b4ed8a59 by Natanael Copa on 2015-06-30T09:58:26Z:
main/xen: fix xendomains init.d script with screen
fixes #4394
- Revision 10136242 by Natanael Copa on 2015-06-30T11:20:39Z:
main/xen: fix xendomains init.d script with screen
fixes #4394
- Revision 978b7fb2 by Natanael Copa on 2015-07-01T11:46:47Z:
main/xen: fix xendomains init.d script with screen
ref #4394
- Uploads:
- xendom_head.out debug output of xendomains init script (with detach typo corrected)