Index: etc/rc.d/jail =================================================================== --- etc/rc.d/jail +++ etc/rc.d/jail @@ -531,7 +531,11 @@ return ;; esac - for _j in $@; do + # If $jail_list is defined, reverse jails for shutdown. + for __j in $@; do + _rev_jail_list="${__j} ${_rev_jail_list}" ; + done + for _j in ${_rev_jail_list}; do _j=$(echo $_j | tr /. _) parse_options $_j || continue if ! $jail_jls -j $_j > /dev/null 2>&1; then