[Bug 196152] jail_list is not reversed when stopping jails

James Gritton jamie at gritton.org
Sat Apr 30 14:55:59 UTC 2016


On 2016-04-29 13:09, Michael Grimm wrote:
> On 10.02.2016, at 17:14, bugzilla-noreply at freebsd.org wrote:
> 
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196152
>> 
>> --- Comment #9 from commit-hook at freebsd.org ---
>> A commit references this bug:
>> 
>> Author: feld
>> Date: Wed Feb 10 16:13:59 UTC 2016
>            ^^^^^^^
> 
>> New revision: 295471
>> URL: https://svnweb.freebsd.org/changeset/base/295471
>> 
>> Log:
>>  Add new rc.conf parameter "jail_reverse_stop"
>> 
>>  When a user defines "jail_list" in rc.conf the jails are started in 
>> the
>>  order defined. Currently the jails are not are stopped in reverse 
>> order
>>  which may break dependencies between jails/services and prevent a 
>> clean
>>  shutdown. The new parameter "jail_reverse_stop" will shutdown jails 
>> in
>>  "jail_list" in reverse order when set to "YES".
>> 
>>  Please note that this does not affect manual invocation of the jail 
>> rc
>>  script. If a user runs the command
>> 
>>    # service jail stop jail1 jail2 jail3
>> 
>>  the jails will be stopped in exactly the order specified regardless 
>> of
>>  jail_reverse_stop being defined in rc.conf.
>> 
>>  PR:           196152
>>  Approved by:  jamie
>>  MFC after:    1 week
> 
> Hmm. Any chance to get that improvement MFC'd?

Sure, I'll push one through.

- Jamie


More information about the freebsd-jail mailing list