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)
Oct 21 2024, 6:20 AM
Unknown Object (File)
Oct 21 2024, 6:20 AM
Unknown Object (File)
Oct 21 2024, 6:20 AM
Unknown Object (File)
Oct 21 2024, 6:05 AM
Unknown Object (File)
Oct 2 2024, 7:51 PM
Unknown Object (File)
Oct 1 2024, 10:17 PM
Unknown Object (File)
Sep 21 2024, 7:53 AM
Unknown Object (File)
Jul 22 2024, 1:27 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.