summaryrefslogtreecommitdiffstats
path: root/debian/hyperv-daemons.postinst
blob: 3573c9c2edba5b0a794bfbb077e47747f4f848d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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