<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>141981</bug_id>
          
          <creation_ts>2006-07-28 02:10 0000</creation_ts>
          <short_desc>app-emulation/xen-tools-3.0.2-r2 - cannot stat /usr/share/xen/xen-consoles-logrotate</short_desc>
          <delta_ts>2006-08-14 00:17:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Tinitus1@onlinehome.de</reporter>
          <assigned_to>aross@gentoo.org</assigned_to>
          <cc>bg@nick125.com</cc>
    
    <cc>mike@gaima.co.uk</cc>
    
    <cc>xen@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>Tinitus1@onlinehome.de</who>
            <bug_when>2006-07-28 02:10:28 0000</bug_when>
            <thetext>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=&quot;-custom-cflags -debug -hardened -pae&quot; 0 kB
[ebuild   R   ] app-emulation/xen-tools-3.0.2-r1  USE=&quot;doc screen sdl vnc -custom-cflags -debug -hardened&quot; 0 kB

R.R.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bg@nick125.com</who>
            <bug_when>2006-08-09 17:57:44 0000</bug_when>
            <thetext>It seems that this bug is being caused by this section of code in /etc/init.d/xendomains:

&lt;code&gt;
        if [[ ${SCREEN} == &quot;yes&quot; ]]; 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
&lt;/code&gt;

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. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-08-10 02:01:21 0000</bug_when>
            <thetext>Looks like there&apos;s a missing (conditional) dependency of logrotate as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-08-13 00:39:12 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-08-13 04:20:28 0000</bug_when>
            <thetext>*** Bug 137874 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aross@gentoo.org</who>
            <bug_when>2006-08-14 00:17:59 0000</bug_when>
            <thetext>Fixed in xen-tools-3.0.2-r3.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>