[Bug 245167] sysutils/ezjail does not properly shutdown jails
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 29 15:22:45 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245167
Bug ID: 245167
Summary: sysutils/ezjail does not properly shutdown jails
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: ml at netfence.it
CC: erdgeist at erdgeist.org
CC: erdgeist at erdgeist.org
Flags: maintainer-feedback?(erdgeist at erdgeist.org)
Issuing "ezjail stop {jailname}" does NOT run shutdown script inside the jail;
instead it seems it just kills the jailed processes badly.
This can be a problem in several situations.
I was recently bitten by this, but see it was discussed several times earlier.
E.g.:
https://forums.freebsd.org/threads/jails-are-not-shutdown-during-reboot.51017/
The problem can be solved by changing jail_{jailname}_exec_stop in
${PREFIX}/etc/ezjail/{jailname}. This has to be done for every single jail.
Somewhere it is suggested this can be done globally, by putting
ezjail_exec_stop="/bin/sh /etc/rc.shutdown"
in ${PREFIX}/etc/ezjail.conf, but this did not work for me.
I understand there is no global consensus on whether rc.shutdown should be
called at jail stop; also I thinks FreeBSD base system's jail command defaults
to NOT running it.
However, ezjail(7) says:
jail_JAILNAME_exec_stop
The command to run inside the jail when stopping it. Defaults to
the empty string, which means "/bin/sh /etc/rc.shutdown".
So either the default is really changed or the manual page should be corrected.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list