/etc/rc.d/jail writing hostname in /var/run/jail_example.id

Nicolas de Bari Embriz Garcia Rojas nbari at dalmp.com
Thu May 24 17:59:59 UTC 2012


After updating to 9.0 latest release (via cvsup) the /etc/rc.d/jail
cannot stop the jails after starting them

after debugging I notice that it the jail PID is stored on the bottom
of the /tmp.XXXXX

a quick hack is to edit /etc/rc.d/jail and replace the 'head' with a
'tail' on line 649 that looks something like this:

 _jail_id=$(head -1 ${_tmp_jail})

with this:

 _jail_id=$(tail -1 ${_tmp_jail})


regards.


More information about the freebsd-bugs mailing list