Bug 141981 - app-emulation/xen-tools-3.0.2-r2 - cannot stat /usr/share/xen/xen-consoles-logrotate
Bug#: 141981 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: aross@gentoo.org Reported By: Tinitus1@onlinehome.de
Component: Ebuilds
URL: 
Summary: app-emulation/xen-tools-3.0.2-r2 - cannot stat /usr/share/xen/xen-consoles-logrotate
Keywords:  
Status Whiteboard: 
Opened: 2006-07-28 02:10 0000
Description:   Opened: 2006-07-28 02:10 0000
The ebuild will not create a

/usr/share/xen/xen-consoles-logrotate





/etc/init.d/xendomains restart
 * Starting /etc/xen/auto Xen domains
error: cannot stat /usr/share/xen/xen-consoles-logrotate: No such file or
directory
xenserver / # touch /usr/share/xen/xen-consoles-logrotate
xenserver / # /etc/init.d/xendomains restart
 * Shutting down /etc/xen/auto Xen domains
 * Starting /etc/xen/auto Xen domains

emerge xen xen-tools -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-emulation/xen-3.0.2  USE="-custom-cflags -debug -hardened
-pae" 0 kB
[ebuild   R   ] app-emulation/xen-tools-3.0.2-r1  USE="doc screen sdl vnc
-custom-cflags -debug -hardened" 0 kB

R.R.

------- Comment #1 From Nick Devito 2006-08-09 17:57:44 0000 -------
It seems that this bug is being caused by this section of code in
/etc/init.d/xendomains:

<code>
        if [[ ${SCREEN} == "yes" ]]; then
                screen -d -m -S xen -t dom0
                screen -r xen -X zombie dr
                logrotate -f /usr/share/xen/xen-consoles-logrotate
                screen -r xen -X logfile /var/log/xen-consoles/%t
                screen -r xen -X logfile flush 1
                screen -r xen -X deflog on
        fi
</code>

Disabling SCREEN in /etc/conf.d/xendomains would also fix the issue here. But,
seeing that it is enabled by default, it would probably be a good idea to
create that directory when the xen-tools ebuild is installed. Or disable SCREEN
by default. 

------- Comment #2 From Andrew Ross (RETIRED) 2006-08-10 02:01:21 0000 -------
Looks like there's a missing (conditional) dependency of logrotate as well.

------- Comment #3 From Andrew Ross (RETIRED) 2006-08-13 00:39:12 0000 -------
Please ignore comment #2 .

Nick, thanks for your diagnosis. By the way, the value of SCREEN in
conf.d/xendomains is actually set according to the screen USE flag.

------- Comment #4 From Andrew Ross (RETIRED) 2006-08-13 04:20:28 0000 -------
*** Bug 137874 has been marked as a duplicate of this bug. ***

------- Comment #5 From Andrew Ross (RETIRED) 2006-08-14 00:17:59 0000 -------
Fixed in xen-tools-3.0.2-r3.