]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/linux-cloud-tools-common.hv-kvp-daemon.upstart
PCI: PM: Skip devices in D0 for suspend-to-idle
[mirror_ubuntu-bionic-kernel.git] / debian / linux-cloud-tools-common.hv-kvp-daemon.upstart
1 # On Azure/Hyper-V systems start the hv_kvp_daemon
2 #
3 description "Hyper-V KVP Protocol Daemon"
4 author "Adam Conrad <adconrad@canonical.com>"
5
6 start on runlevel [2345]
7 stop on runlevel [!2345]
8 console log
9
10 pre-start script
11 if [ -e "/etc/default/hv-kvp-daemon-init" ]; then
12 . /etc/default/hv-kvp-daemon-init
13 fi
14 [ "$RUN_KVP_DAEMON" = 0 ] && { stop; exit 0; }
15 if [ -d /sys/class/dmi/id/. ]; then
16 read company </sys/class/dmi/id/sys_vendor
17 read product </sys/class/dmi/id/product_name
18 [ "$company:$product" = 'Microsoft Corporation:Virtual Machine' ] || { stop; exit 0; }
19 fi
20 end script
21
22 exec /usr/sbin/hv_kvp_daemon -n