Subject: Re: [vserver] hook into util-vserver start-script
From: Wilhelm Meier <wilhelm.meier@fh-kl.de>
Date: Thu, 29 Jan 2009 08:42:27 +0100

Am Mittwoch 28 Januar 2009 schrieb Herbert Poetzl:
> 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)

yes, but this is too late (as you said below) in the boot sequence 

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

usually there are some processes sitting around there ...

I did it now with an additional boot script which does the 
umount/setattr in a temp. namespace (that was your suggestion from a 
post 2 years ago ...)

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

sure

Thanks!

>
> > 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



-- 
Wilhelm