Page MenuHomeFreeBSD

Stop jails in reverse order
ClosedPublic

Authored by williams_ct1.xyz on Feb 9 2016, 9:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 1:40 AM
Unknown Object (File)
Fri, Apr 26, 1:40 AM
Unknown Object (File)
Jan 8 2024, 2:27 AM
Unknown Object (File)
Jan 8 2024, 2:27 AM
Unknown Object (File)
Dec 27 2023, 10:02 AM
Unknown Object (File)
Nov 23 2023, 4:04 PM
Unknown Object (File)
Nov 1 2023, 9:00 PM
Unknown Object (File)
Sep 30 2023, 9:06 PM
Subscribers

Details

Summary

Updated revision from D2088:
You can enable specific jails in /etc/rc.conf via jail_list="" and the order in which you list them affects the order they are started. However, the order is not reversed during shutdown which can break dependencies between jails/services and prevent a clean shutdown of a user's environment.

A proposed switch could be added to rc.conf to enable the jails to stop in reverse, but not for invocations of the form "service jail stop j1 j2 j3"

jail_reverse_stop="YES"

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

williams_ct1.xyz retitled this revision from to Stop jails in reverse order.
williams_ct1.xyz updated this object.
williams_ct1.xyz edited the test plan for this revision. (Show Details)
williams_ct1.xyz added reviewers: allanjude, jamie, feld.
williams_ct1.xyz set the repository for this revision to rS FreeBSD src repository - subversion.

TIL rc.subr has reverse_list, so the old patch didn't need to to it by hand!

This has the optional knob, and avoids the reversal when jails are specified on the command line, which is both of the things we needed. It works on testing, so it's good by me.

jamie edited edge metadata.
This revision is now accepted and ready to land.Feb 9 2016, 6:12 PM
feld edited edge metadata.

Oh wow this is so much cleaner. Someone please commit :-)

I'm not a committer, so if someone else could commandeer and commit.

This revision was automatically updated to reflect the committed changes.