Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2012 18:59:58 +0100
From:      Nicolas de Bari Embriz Garcia Rojas <nbari@dalmp.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   /etc/rc.d/jail writing hostname in /var/run/jail_example.id
Message-ID:  <CAHafYQXnCJb4dDqRoMuEQD=sg599QdwbXX2RPEVCkweKinkuTg@mail.gmail.com>

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



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