> I don't like this keystroke saving sugar, vserver should just have the
> 'exec' option and nothing else, even the 'enter' command is not that
> necessary IMHO :-)
> 

Well, you don't have to use it ;) If it saves me 10 minutes (in total)
out of my day, that's a good thing.
But, if you really want, you should be calling the whole command. The
whole vserver command is keystroke saving sugar after all!

. /var/run/vservsers/name
chcontext --secure --ctx ${S_CONTEXT} (+ options) \
chroot /vservers/name \
chbind --ip x.x.x.x \
${commandname}

(roughly)

Incidentally, I've created an altered version of this that just calls:

exec /etc/init.d/${servicename}

This is more generalized, and works on redhat, debian, gentoo, etc.

Cheers,
Liam


On Fri, 2004-05-07 at 14:10, Gregory (Grisha) Trubetskoy wrote:
> On Fri, 7 May 2004, Bjoern Steinbrink wrote:
> 
> > The vserver script just calls itself with 'exec /sbin/service' instead
> > of 'service' so that option really just saves a few keystrokes, that's
> > all, you could also just use the exec call directly.
> 
> This is a bit on a different topic, but I just thought I'd throw that in -
> I don't like this keystroke saving sugar, vserver should just have the
> 'exec' option and nothing else, even the 'enter' command is not that
> necessary IMHO :-)
> 
> Grisha
> _______________________________________________
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 

_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to