Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160815264
D5233.id13183.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5233.id13183.diff
View Options
Index: head/etc/defaults/rc.conf
===================================================================
--- head/etc/defaults/rc.conf
+++ head/etc/defaults/rc.conf
@@ -694,6 +694,7 @@
jail_enable="NO" # Set to NO to disable starting of any jails
jail_parallel_start="NO" # Start jails in the background
jail_list="" # Space separated list of names of jails
+jail_reverse_stop="NO" # Stop jails in reverse order
##############################################################
### Define source_rc_confs, the mechanism used by /etc/rc.* ##
Index: head/etc/rc.d/jail
===================================================================
--- head/etc/rc.d/jail
+++ head/etc/rc.d/jail
@@ -521,7 +521,11 @@
command=$jail_program
rc_flags=$jail_flags
command_args="-f $jail_conf -r"
- $jail_jls name | while read _j; do
+ if checkyesno jail_reverse_stop; then
+ $jail_jls name | tail -r
+ else
+ $jail_jls name
+ fi | while read _j; do
echo -n " $_j"
_tmp=`mktemp -t jail` || exit 3
$command $rc_flags $command_args $_j >> $_tmp 2>&1
@@ -536,6 +540,7 @@
return
;;
esac
+ checkyesno jail_reverse_stop && set -- $(reverse_list $@)
for _j in $@; do
_j=$(echo $_j | tr /. _)
_jv=$(echo -n $_j | tr -c '[:alnum:]' _)
@@ -571,5 +576,6 @@
load_rc_config $name
case $# in
1) run_rc_command $@ ${jail_list:-_ALL} ;;
-*) run_rc_command $@ ;;
+*) jail_reverse_stop="no"
+ run_rc_command $@ ;;
esac
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 29, 4:17 AM (20 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34452651
Default Alt Text
D5233.id13183.diff (1 KB)
Attached To
Mode
D5233: Stop jails in reverse order
Attached
Detach File
Event Timeline
Log In to Comment