[Bug 217545] jail: exec.poststop not executed, mount.fstab does not umount after removing jail

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 217545] jail: exec.poststop not executed, mount.fstab does not umount after removing jail

freebsd-jail mailing list
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217545

--- Comment #6 from gronke <[hidden email]> ---
I would expect jail -r to respect the configuration a jail was started with
when the jail -c command did not complain about ignored options when setting
them. On the other hand it should still be able to override options with jail
-r.

    $ jail -c persist name=myjail exec.stop="/bin/echo EXECUTED"
    $ jail -r -v myjail | grep -c EXECUTED
    1
    $ jail -c persist name=myjail exec.stop="/bin/echo EXECUTED"
    $ jail -r -v exec.stop="/usr/bin/true" | grep -c EXECUTED
    0

In result a started jail can be safely stopped without any knowledge of its
internals when configured accordingly.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "[hidden email]"