Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133265 - Gentoo+Virtuozzo+clock init script
Summary: Gentoo+Virtuozzo+clock init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: Other Other
: High trivial
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-13 22:45 UTC by John Skopis
Modified: 2006-05-24 12:40 UTC (History)
3 users (show)

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


Attachments
Simple fix (vzclock.patch,490 bytes, patch)
2006-05-13 22:47 UTC, John Skopis
Details | Diff
A bit more proper fix (clock-vz.diff,321 bytes, patch)
2006-05-15 02:41 UTC, Kir Kolyshkin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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