summaryrefslogtreecommitdiffstats
path: root/libexec/container/stop
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-03 10:03:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-11-03 10:03:47 +0000
commit9447007f57ff245014ac03a040a5f572db20c2ea (patch)
tree39d76382ed39876ae6462c1e18f734a7811b8136 /libexec/container/stop
parentReleasing debian version 20211102-1. (diff)
downloadopen-infrastructure-compute-tools-9447007f57ff245014ac03a040a5f572db20c2ea.tar.xz
open-infrastructure-compute-tools-9447007f57ff245014ac03a040a5f572db20c2ea.zip
Merging upstream version 20211103.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libexec/container/stop')
-rwxr-xr-xlibexec/container/stop3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/container/stop b/libexec/container/stop
index 98b2afa..9130c97 100755
--- a/libexec/container/stop
+++ b/libexec/container/stop
@@ -27,6 +27,7 @@ COMMAND="$(basename ${0})"
CONFIG="/etc/${SOFTWARE}/config"
HOOKS="/etc/${SOFTWARE}/hooks"
MACHINES="/var/lib/machines"
+NEEDRESTART="/usr/share/${SOFTWARE}/needrestart"
CLEAN="false"
@@ -264,6 +265,8 @@ case "${VERBOSE}" in
;;
esac
+rm -f "/etc/needrestart/restart.d/container@${NAME}.service"
+
machinectl ${MODE} ${NAME}
case "${FORCE}" in