debian/hyperv-daemons.postinst
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | if [ "$1" = "configure" ]; then |
| 5 | if [ -d /run/systemd/system ]; then |
| 6 | if [ -z "$2" ]; then |
| 7 | # On initial install make sure udev notifies systemd |
| 8 | udevadm trigger || true |
| 9 | else |
| 10 | # On upgrade make sure running daemons are restarted |
| 11 | systemctl try-restart hv-kvp-daemon.service hv-vss-daemon.service |
| 12 | fi |
| 13 | fi |
| 14 | fi |
| 15 | |
| 16 | #DEBHELPER# |
| 17 | |
| 18 | exit 0 |