Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133265

Summary: Gentoo+Virtuozzo+clock init script
Product: Gentoo Linux Reporter: John Skopis <jskopis>
Component: [OLD] baselayoutAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: trivial CC: dev, jskopis, kir
Priority: High    
Version: unspecified   
Hardware: Other   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Simple fix
A bit more proper fix

Description John Skopis 2006-05-13 22:45:56 UTC
Hello, 

A Gentoo-based VPS server will fail to start under Virtuozzo. I have tracked the problem down to the "clock" script. I noticed that there is support for Xen and seemingly other virtualization technologies in /etc/init.d/clock. I am referring to fakeit=1.
Comment 1 John Skopis 2006-05-13 22:47:27 UTC
Created attachment 86731 [details, diff]
Simple fix

I think virtuozzo is the only linux distro that uses /proc/user_beancounters. This resolved the issue for me.
Comment 2 Kirill Korotaev 2006-05-15 02:19:23 UTC
it is better to check for [ -d /proc/vz ]
Comment 3 Kir Kolyshkin 2006-05-15 02:41:44 UTC
Created attachment 86795 [details, diff]
A bit more proper fix

This fix takes into account Kirill Korotaev's proposal of checking for /proc/vz instead of /proc/user_beancounters. It also changes 'Virtuozzo' to 'VZ' so it will be suitable for both Virtuozzo and OpenVZ.

Please apply.
Comment 4 Kir Kolyshkin 2006-05-15 02:43:48 UTC
Sorry, my patch #2 is against baselayout-1.11.14-r8
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-05-24 12:40:29 UTC
Fixed in baselayout-1.12.0-r1