HomeFreeBSD

Add new rc.conf parameter "jail_reverse_stop"

Description

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

  1. 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
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D5233

Details

Provenance
feldAuthored on
Differential Revision
D5233: Stop jails in reverse order
Parents
rS295470: Use OF_getencprop to read a property, it already handles the endian
Branches
Unknown
Tags
Unknown