Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 15:18:54 -0400
From:      Mike Jakubik <mike.jakubik@intertainservices.com>
To:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Jail startup/shutdown broken on latest 9-STABLE
Message-ID:  <1337887134.1908.20.camel@mike-PC>

next in thread | raw e-mail | index | archive | help
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.


root@jail.local:~# uname -a
FreeBSD jail.local 9.0-STABLE FreeBSD 9.0-STABLE #0: Thu May 24 12:50:04
EDT 2012     root@jail.local:/usr/obj/usr/src/sys/JAIL  amd64


Boot:

 ezJailConfiguring jails:.
Starting jails: cannot start jail "game":
-1
 cannot start jail "app":
-1

/var/log/messages:

May 24 15:05:30 jail kernel: pid 1276 (jail), uid 0: exited on signal 11
May 24 15:05:30 jail kernel: pid 1343 (jail), uid 0: exited on signal 11


root@jail.local:~# jls
   JID  IP Address      Hostname                      Path


root@jail.local:~# /usr/local/etc/rc.d/ezjail start
 ezjailConfiguring jails:.
Starting jails: game.local app.local.

(notice that jails start at #3)

root@jail.local:~# jls
   JID  IP Address      Hostname                      Path
     3  10.57.227.100   game.local                    /jails/game
     4  10.57.227.99    app.local                     /jails/app


(can not stop jails now)

root@jail.local:~# /usr/local/etc/rc.d/ezjail stop 
 ezjailStopping jails: app.local game.local.

root@jail.local:~# jls
   JID  IP Address      Hostname                      Path
     3  10.57.227.100   game.local                    /jails/game
     4  10.57.227.99    app.local                     /jails/app

root@jail.local:~# /usr/local/etc/rc.d/ezjail stop
 ezjailStopping jails: cannot stop jail app. No jail id in /var/run
 cannot stop jail game. No jail id in /var/run

(same behaviour occurs when i use the base /etc/rc.d script to start/stop the jails)

Thanks.




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