From b9fe2703cbede4dff8c448c5efffbbf51af554ba Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Mon, 23 Sep 2019 16:08:40 -0300 Subject: [PATCH] changing stop signal to shutdown systemd gracefully --- systemd/centos7/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemd/centos7/Dockerfile b/systemd/centos7/Dockerfile index 46aa748c..f447c049 100644 --- a/systemd/centos7/Dockerfile +++ b/systemd/centos7/Dockerfile @@ -12,6 +12,10 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ rm -f /lib/systemd/system/basic.target.wants/*;\ rm -f /lib/systemd/system/anaconda.target.wants/*; +# Systemd defines that it expects SIGRTMIN+3 for graceful shutdown +# https://www.commandlinux.com/man-page/man1/systemd.1.html#lbAH +STOPSIGNAL SIGRTMIN+3 + VOLUME [ "/sys/fs/cgroup" ] CMD ["/usr/sbin/init"]