diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-11-03 09:54:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-11-03 09:54:53 +0000 |
commit | 814c84844bb14b3cf413ee10ad8c9f7aebf41a7c (patch) | |
tree | 5fe8715c0b5dce8bbf6596be2a4394bee80a1d3b /libexec/container/stop | |
parent | Adding needrestart restart scripts. (diff) | |
download | compute-tools-814c84844bb14b3cf413ee10ad8c9f7aebf41a7c.tar.xz compute-tools-814c84844bb14b3cf413ee10ad8c9f7aebf41a7c.zip |
Enabling automatic needrestart blacklisting for containers.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'libexec/container/stop')
-rwxr-xr-x | libexec/container/stop | 3 |
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 |