From 27141cb0e2eaf29a709843b0b7d8632144f36ea4 Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Fri, 8 Nov 2019 00:07:25 +0100 Subject: [PATCH] Ignore Hyper-V daemons on 'systemctl isolate' These deamons are not among dependencies for targets like 'multi-user.target' so trying to isolate them results in daemons being stopped. Signed-off-by: Vitaly Kuznetsov --- hyperv-daemons.spec | 1 + hypervfcopyd.service | 1 + hypervkvpd.service | 1 + hypervvssd.service | 1 + 4 files changed, 4 insertions(+) diff --git a/hyperv-daemons.spec b/hyperv-daemons.spec index 25e2cb0..46a9d1b 100644 --- a/hyperv-daemons.spec +++ b/hyperv-daemons.spec @@ -248,6 +248,7 @@ fi %changelog * Fri Nov 08 2019 Vitaly Kuznetsov - 0-0.30.20190303git - Rebase to 5.4-rc6 +- Add IgnoreOnIsolate to systemd units * Thu Jul 25 2019 Fedora Release Engineering - 0-0.29.20190303git - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/hypervfcopyd.service b/hypervfcopyd.service index fa4a0a3..dd14a97 100644 --- a/hypervfcopyd.service +++ b/hypervfcopyd.service @@ -1,6 +1,7 @@ [Unit] Description=Hyper-V FCOPY daemon BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device +IgnoreOnIsolate=1 [Service] ExecStart=/usr/sbin/hypervfcopyd -n diff --git a/hypervkvpd.service b/hypervkvpd.service index d8bfdf3..36ee11c 100644 --- a/hypervkvpd.service +++ b/hypervkvpd.service @@ -2,6 +2,7 @@ Description=Hyper-V KVP daemon BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device After=network.target +IgnoreOnIsolate=1 [Service] Type=simple diff --git a/hypervvssd.service b/hypervvssd.service index 9751cb3..1e5ff43 100644 --- a/hypervvssd.service +++ b/hypervvssd.service @@ -1,6 +1,7 @@ [Unit] Description=Hyper-V VSS daemon BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device +IgnoreOnIsolate=1 [Service] ExecStart=/usr/sbin/hypervvssd -n