Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141981 - app-emulation/xen-tools-3.0.2-r2 - cannot stat /usr/share/xen/xen-consoles-logrotate
Summary: app-emulation/xen-tools-3.0.2-r2 - cannot stat /usr/share/xen/xen-consoles-lo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Andrew Ross (RETIRED)
URL:
Whiteboard:
Keywords:
: 137874 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-28 02:10 UTC by R. May
Modified: 2006-08-14 00:17 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R. May 2006-07-28 02:10:28 UTC
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 Nick Devito 2006-08-09 17:57:44 UTC
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 Andrew Ross (RETIRED) gentoo-dev 2006-08-10 02:01:21 UTC
Looks like there's a missing (conditional) dependency of logrotate as well.
Comment 3 Andrew Ross (RETIRED) gentoo-dev 2006-08-13 00:39:12 UTC
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 Andrew Ross (RETIRED) gentoo-dev 2006-08-13 04:20:28 UTC
*** Bug 137874 has been marked as a duplicate of this bug. ***
Comment 5 Andrew Ross (RETIRED) gentoo-dev 2006-08-14 00:17:59 UTC
Fixed in xen-tools-3.0.2-r3.