Commit Graph

4 Commits

Author SHA1 Message Date
Ben Hutchings bc118214a5 [x86] hyperv-daemons: Make all services conditional on device existence
hv_{kvp,vss}_daemon used to communicate with the corresponding kernel
drivers over netlink, but now they use char devices.  hv_fcopy_daemon
always used a char device.  Rather than checking for Hyper-V
specifically, change all of the init scripts and systemd service
definitions to check for the appropriate device nodes.

Delete the check-hyperv program that we used to check for Hyper-V
in init scripts.
2018-10-17 01:54:19 +01:00
Ben Hutchings 6d1b6b2dc8 [x86] hyperv-daemons: Create pid files under /run, not /var/run 2017-09-30 13:50:34 +01:00
Ben Hutchings 51100af154 [x86] hyperv-daemons: Use pid file name in init script status operation
While we're here, also drop the unnecessary commands to replicate the
exit code.
2017-09-30 13:29:07 +01:00
Ben Hutchings 0bd35d792a hyperv-daemons: Add init scripts
Also add a helper executable that implements the check for Hyper-V
(like ConditionVirtualization=microsoft in the systemd units).

(cherry picked from commit 50747480c882dae7d3c8f7b4d0df5cf3276c4ee5)
2016-02-21 15:03:47 +00:00