Jail startup/shutdown broken on latest 9-STABLE
Mike Jakubik
mike.jakubik at intertainservices.com
Thu May 24 22:06:53 UTC 2012
On Thu, 2012-05-24 at 23:22 +0200, Mateusz Guzik wrote:
> On Thu, May 24, 2012 at 03:18:54PM -0400, Mike Jakubik wrote:
> > Hello,
> >
> > Latest 9-STABLE has introduced some changes that break the ezjail rc
> > script. On bootup it fails to start, but when i log in via ssh and
> > manually start it, it works. However i am unable to shut them down
> > afterwards.
> >
> Try this:
> http://student.agh.edu.pl/~mjguzik/patches/jail-startup-shutdown.patch
>
> cd /usr/src && patch -p1 < patch && cd usr.sbin/jail && make && make install
>
> /usr/src/etc/rc.d/jail script can be just copied over.
>
> Note that your /var/run/jail_* files have broken content (some line from
> /etc/rc's output instead of jail id).
>
Mateusz,
Thanks for the patch, it fixes the startup issue on boot, however
shutting down the jails still does not work. The /var/run files have
garbage in them as you mentioned.
root at jail.local:~# cat /var/run/jail_app.id
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Hostname is set in /etc/rc.conf.
Thanks.
More information about the freebsd-stable
mailing list