Date: Sun, 29 Mar 2020 15:21:22 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 245167] sysutils/ezjail does not properly shutdown jails Message-ID: <bug-245167-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245167 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@FreeBSD.org Reporter: ml@netfence.it CC: erdgeist@erdgeist.org CC: erdgeist@erdgeist.org Flags: maintainer-feedback?(erdgeist@erdgeist.org) Issuing "ezjail stop {jailname}" does NOT run shutdown script inside the ja= il; 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 earli= er. E.g.: https://forums.freebsd.org/threads/jails-are-not-shutdown-during-reboot.510= 17/ 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=3D"/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 defau= lts 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 correc= ted. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245167-7788>