[lxc-users] lxc stop ignored

Harald Dunkel harald.dunkel at aixigo.com
Fri Sep 4 08:16:24 UTC 2020


Hi Aleksandar,

I've found some old README for configuring RedHat LXC containers:

	# create an upstart handler for SIGPWR
	cat <<EOF >/etc/init/power-status-changed.conf
	#  power-status-changed - shutdown on SIGPWR
	#
	start on power-status-changed

	exec /sbin/shutdown -h now "SIGPWR received"
	EOF
	# for RHEL5: edit /etc/inittab to set
	pf::powerfail:/sbin/shutdown -h now "Power Failure; System Shutting Down"


But I am not sure if this is applicable to CentOS 6.

Hope this helps
Harri


More information about the lxc-users mailing list