From 8c4f82ba965285cac6268aa5616fe4130c27eee4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 24 Oct 2019 08:37:22 +0200 Subject: Diverting shutdown commands in progress-linux-container package. Signed-off-by: Daniel Baumann --- debian/local/shutdown | 13 +++++++++++++ debian/local/shutdown.txt | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100755 debian/local/shutdown create mode 100644 debian/local/shutdown.txt (limited to 'debian/local') diff --git a/debian/local/shutdown b/debian/local/shutdown new file mode 100755 index 0000000..16ee5ed --- /dev/null +++ b/debian/local/shutdown @@ -0,0 +1,13 @@ +#!/bin/sh + +echo "${0}: disabled in systemd-nspawn container" + +if [ -e /etc/open-infrastructure/container/shutdown.txt ] +then + cat /etc/open-infrastructure/container/shutdown.txt +elif [ -e /usr/share/open-infrastructure/container/shutdown.txt ] +then + cat /usr/share/open-infrastructure/container/shutdown.txt +fi + +exit 1 diff --git a/debian/local/shutdown.txt b/debian/local/shutdown.txt new file mode 100644 index 0000000..b082bf0 --- /dev/null +++ b/debian/local/shutdown.txt @@ -0,0 +1,6 @@ + +Linux container share the kernel of the host system they are running on, +there is no need to reboot just the container. + +However, please contact your system administrator to reboot this +container from the host system. -- cgit v1.2.3