Summary: | Jail(1) -r <JID> does not run configured exec.poststop scripts as jail(1) -r <jail-name> | ||
---|---|---|---|
Product: | Base System | Reporter: | Kristen Nielsen <krn> |
Component: | bin | Assignee: | freebsd-jail (Nobody) <jail> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | jamie, krn |
Priority: | --- | ||
Version: | 12.1-RELEASE | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Kristen Nielsen
2020-04-28 18:12:44 UTC
As backward compatibility feature, "-r" will remove jails specified by JID that are not found in the configuration file. I guess the problem lies in what is meant by "found in the configuration file." When you run "jail -r 5" it will look for a jail called "5" in the configuration file. When that's not found, it goes into back-compat mode and just kills the jail. It would make sense though, to look at the jail #5's name, and take a second look in the config file. Turns out this very issue was already committed in CURRENT last year! Just gotta MFC... OK, I'm *really* not paying attention. Actually it was already MFC'd as well. It'll work as expected in 12.2. |