Subject: Re: [vserver] hook into util-vserver start-script
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Wed, 28 Jan 2009 14:01:44 +0100

On Wed, Jan 28, 2009 at 09:39:13AM +0100, Wilhelm Meier wrote:
> Hi,

> is there a "standard"-way to hook some own functionality into the 
> util-vserver start-script?

> I need to unhide /proc/bus/usb and therefore I have to 

> umount /proc/bus/usb and
> setattr --~hide /proc/bus/usb

this could be done via the vprocunhide runlevel
script, which in turn runs vprocunhide, which
unhides the selected (or default) entries in
/proc (/usr/lib/util-vserver/defaults/vprocunhide-files)

of course, you might want to run that before
/proc/bus/usb is mounted, or unmount/mount it
before and after ...

note that this will be global to all guests in
any case

> once before the vservers start.

> I did this in a prepre-start script. I works but this script is 
> executed every time a vserver starts. This isn't neccessary.

> Any hints?

HTH,
Herbert

> 
> -- 
> Wilhelm