Re: New jail(8) committed

2012-04-29 Thread Jason Hellenthal
On Sun, Apr 29, 2012 at 07:44:51PM -0600, Jamie Gritton wrote: > On 04/29/12 17:37, Mr Dandy wrote: > > Looks like the new functionality lost abilities of old /etc/rc.d/jail to > > carry > > out multiple quantity of prestart/stop instruction > > > > Old cool feature: > > jail_example_exec_afters

Re: New jail(8) committed

2012-04-29 Thread Jamie Gritton
On 04/29/12 17:37, Mr Dandy wrote: Looks like the new functionality lost abilities of old /etc/rc.d/jail to carry out multiple quantity of prestart/stop instruction Old cool feature: jail_example_exec_afterstart0="" jail_example_exec_afterstart1="" .. In new style it doesn't work: exec.start0 =

Re: New jail(8) committed

2012-04-29 Thread Mr Dandy
Looks like the new functionality lost abilities of old /etc/rc.d/jail to carry out multiple quantity of prestart/stop instruction Old cool feature: jail_example_exec_afterstart0="" jail_example_exec_afterstart1="" .. In new style it doesn't work: exec.start0 = '/bin/date'; exec.start1 = '/bin/da

Re: New jail(8) committed

2012-04-28 Thread Devin Teske
On Apr 28, 2012, at 3:52 PM, Jamie Gritton wrote: > I don't know about wrapping a utility around it, but it would be nice to > have in a library. If it could be made to work for not only jail, but > apmd and devd as well, then we could make some existing code cleaner. > I'm thinking about throw

Re: New jail(8) committed

2012-04-28 Thread Jason Hellenthal
On Sat, Apr 28, 2012 at 04:59:51PM -0600, Jamie Gritton wrote: > On 04/28/12 00:08, Jason Hellenthal wrote: > > On Sat, Apr 28, 2012 at 06:14:07AM +0200, Dirk Engling wrote: > >> On 26.04.12 22:07, Jamie Gritton wrote: > >> > >>> I've finally put my jail(8) changes into HEAD. This new version of

Re: New jail(8) committed

2012-04-28 Thread Jamie Gritton
On 04/28/12 00:08, Jason Hellenthal wrote: On Sat, Apr 28, 2012 at 06:14:07AM +0200, Dirk Engling wrote: On 26.04.12 22:07, Jamie Gritton wrote: I've finally put my jail(8) changes into HEAD. This new version of jail can create jails from a configuration file - see jail.conf(5) for the format

Re: New jail(8) committed

2012-04-28 Thread Jamie Gritton
I don't know about wrapping a utility around it, but it would be nice to have in a library. If it could be made to work for not only jail, but apmd and devd as well, then we could make some existing code cleaner. - Jamie On 04/28/12 10:52, Devin Teske wrote: On Apr 28, 2012, at 7:38 AM, Jamie

Re: New jail(8) committed

2012-04-28 Thread Devin Teske
On Apr 28, 2012, at 7:38 AM, Jamie Gritton wrote: > The main reason I didn't consider a jail.d approach is just that I > haven't - such things are a little off the radar for me. It seemed very > natural to use a configuration file format that other programs already > use (e.g. named, apmd, devd).

Re: New jail(8) committed

2012-04-28 Thread Jamie Gritton
The main reason I didn't consider a jail.d approach is just that I haven't - such things are a little off the radar for me. It seemed very natural to use a configuration file format that other programs already use (e.g. named, apmd, devd). I suppose it's true that the "foo.d" approach is also in u

Re: New jail(8) committed

2012-04-28 Thread Dirk Engling
On 28.04.12 08:08, Jason Hellenthal wrote: > Since when does a lack of a parser in "YOUR tool" become a problem for > FreeBSD ? just sayin! I mixed a reply to Bjoern A. Zeeb's question about ezjail supporting the config format in into the remarks I had about the general design decisions. Of

Re: New jail(8) committed

2012-04-27 Thread Jason Hellenthal
On Sat, Apr 28, 2012 at 06:14:07AM +0200, Dirk Engling wrote: > On 26.04.12 22:07, Jamie Gritton wrote: > > > I've finally put my jail(8) changes into HEAD. This new version of jail > > can create jails from a configuration file - see jail.conf(5) for the > > format, as well as some additions t

Re: New jail(8) committed

2012-04-27 Thread Dirk Engling
On 26.04.12 22:07, Jamie Gritton wrote: > I've finally put my jail(8) changes into HEAD. This new version of jail > can create jails from a configuration file - see jail.conf(5) for the > format, as well as some additions to jail(8). This doesn't mean you > *have* to use jail.conf, but it's a be

Re: New jail(8) committed

2012-04-27 Thread Jamie Gritton
I thought I had changed that to 10.0 - and I would then further change it back to 9.1 assuming it got MFC'd. I had originally intended for 9.0 but missed the deadline, and I thought I had fixed that. Maybe editing the man page while I already had the svn commit running (in the editor) wasn't suffi

Re: New jail(8) committed

2012-04-27 Thread Bjoern A. Zeeb
On 26. Apr 2012, at 20:07 , Jamie Gritton wrote: Hi, > I've finally put my jail(8) changes into HEAD. I meant to say this yesterday already but time flies. *YEAH!!!* Thanks a lot. /bz -- Bjoern A. Zeeb You have to have visions! It does not matter how good

Re: New jail(8) committed

2012-04-27 Thread Bjoern A. Zeeb
On 27. Apr 2012, at 14:33 , Christer Solskogen wrote: > On 26/4/2012 10:07 PM, Jamie Gritton wrote: > >> There's still more that I want to do with this, but it's time it was >> part of current. >> > > I've got an idea that you might find useful for future versions of jail. I > have created a

Re: New jail(8) committed

2012-04-27 Thread Subbsd
Hi On Fri, Apr 27, 2012 at 12:07 AM, Jamie Gritton wrote: > I've finally put my jail(8) changes into HEAD. http://svnweb.freebsd.org/base/head/usr.sbin/jail/jail.conf.5?view=markup&pathrev=234712 ( The .Nm file was added in .Fx 9.0 . ) Looks like man file in HISTORY section is a bit incorrect.

Re: New jail(8) committed

2012-04-27 Thread Christer Solskogen
On 26/4/2012 10:07 PM, Jamie Gritton wrote: There's still more that I want to do with this, but it's time it was part of current. I've got an idea that you might find useful for future versions of jail. I have created a wrapper script for my own use where I instead of creating a jail with b