summaryrefslogtreecommitdiffstats
path: root/libexec/container/start
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-03 10:03:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-03 10:03:28 +0000
commit674c185fa343e79ea27252ce92403a60c6bdee7c (patch)
tree6b1a941170e8f148830aaa219646c1dd3e5c7068 /libexec/container/start
parentAdding upstream version 20211102. (diff)
downloadopen-infrastructure-compute-tools-674c185fa343e79ea27252ce92403a60c6bdee7c.tar.xz
open-infrastructure-compute-tools-674c185fa343e79ea27252ce92403a60c6bdee7c.zip
Adding upstream version 20211103.upstream/20211103
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libexec/container/start')
-rwxr-xr-xlibexec/container/start4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/container/start b/libexec/container/start
index f899446..32d385e 100755
--- a/libexec/container/start
+++ b/libexec/container/start
@@ -27,6 +27,7 @@ COMMAND="$(basename ${0})"
CONFIG="/etc/${SOFTWARE}/config"
HOOKS="/etc/${SOFTWARE}/hooks"
MACHINES="/var/lib/machines"
+NEEDRESTART="/usr/share/${SOFTWARE}/needrestart"
START="false"
SYSTEMCTL="true"
@@ -530,6 +531,9 @@ case "${START}" in
;;
esac
+ mkdir -p /etc/needrestart/restart.d
+ ln -sf "${NEEDRESTART}"/container@.service "/etc/needrestart/restart.d/container@${NAME}.service"
+
${SETARCH} systemd-nspawn --keep-unit ${BIND} ${BIND_RO} ${BOOT} ${CAPABILITY} ${DIRECTORY} ${DROP_CAPABILITY} ${MACHINE} ${NETWORK_VETH_EXTRA} ${LINK_JOURNAL} ${REGISTER}
case "${VERBOSE}" in