Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2009 20:42:57 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        jail@freebsd.org
Subject:   Re: ezjail with vimage
Message-ID:  <20091207203957.P83957@maildrop.int.zabbadoz.net>
In-Reply-To: <4B1D5A45.1010301@quip.cz>
References:  <2ec071a80912070104i6a7a38e3labc33ee3b494cef5@mail.gmail.com> <20091207122256.45984m6btgeeugmc@webmail.leidinger.net> <4B1CF4B3.8020708@quip.cz> <20091207182241.I83957@maildrop.int.zabbadoz.net> <4B1D5A45.1010301@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 7 Dec 2009, Miroslav Lachman wrote:

> Bjoern A. Zeeb wrote:
>> On Mon, 7 Dec 2009, Miroslav Lachman wrote:
>> 
>> Hi Miroslav,
>> 
>>> The last time I wrote with Bjoern A. Zeeb about jailname, cpuset etc.
>>> support in rc.conf (back in March 2009) he stated that "there is no
>>> need to add anything" because it can be done by jail_NAME_flags.
>>> AFAIK current system still doesn't allow me to set cpuset to jail from
>>> rc.conf
>> 
>> Check /etc/defaults/rc.conf for jail_example_exec_afterstart.
>
> You already said that in the past and it was the reason why I found bug in 
> cpuset.
> http://lists.freebsd.org/pipermail/freebsd-jail/2009-April/000830.html
>
> As I said, exec_afterstart is executed inside the jail and it means that I 
> can not use it to bind the jail to specific CPU cores.
> ...but maybe I am blind.
>
> Can you correct me if I am wrong?

*mumble*  *tired*  *again* ..

Let me cite man rc.conf to not mess it up again:

      jail_<jname>_exec_afterstart<N>
                  (str) Unset by default.  This is the command run as Nth com-
                  mand in a jail after jail startup, where N is 1, 2, and so
                  on.

      jail_<jname>_exec_poststart<N>
                  (str) Unset by default.  This is the command run as Nth com-
                  mand after jail startup, where N is 0, 1, and so on.  It is
                  run outside the jail.

HTH

/bz

-- 
Bjoern A. Zeeb         It will not break if you know what you are doing.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091207203957.P83957>