diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:28:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:28:00 +0000 |
commit | 3565071f226432336a54d0193d729fa4508a3394 (patch) | |
tree | 4cde13f078f84c0a7785d234fd52edce7c90546a /debian/hyperv-daemons.postinst | |
parent | Adding upstream version 6.6.15. (diff) | |
download | linux-3565071f226432336a54d0193d729fa4508a3394.tar.xz linux-3565071f226432336a54d0193d729fa4508a3394.zip |
Adding debian version 6.6.15-2.debian/6.6.15-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/hyperv-daemons.postinst')
-rw-r--r-- | debian/hyperv-daemons.postinst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/hyperv-daemons.postinst b/debian/hyperv-daemons.postinst new file mode 100644 index 0000000000..3573c9c2ed --- /dev/null +++ b/debian/hyperv-daemons.postinst @@ -0,0 +1,18 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ]; then + if [ -d /run/systemd/system ]; then + if [ -z "$2" ]; then + # On initial install make sure udev notifies systemd + udevadm trigger || true + else + # On upgrade make sure running daemons are restarted + systemctl try-restart hv-fcopy-daemon.service hv-kvp-daemon.service hv-vss-daemon.service + fi + fi +fi + +#DEBHELPER# + +exit 0 |