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 <vkuznets@redhat.com>
This commit is contained in:
Vitaly Kuznetsov 2019-11-08 00:07:25 +01:00
parent f9318fb227
commit 27141cb0e2
4 changed files with 4 additions and 0 deletions

View File

@ -248,6 +248,7 @@ fi
%changelog %changelog
* Fri Nov 08 2019 Vitaly Kuznetsov <vkuznets@redhat.com> - 0-0.30.20190303git * Fri Nov 08 2019 Vitaly Kuznetsov <vkuznets@redhat.com> - 0-0.30.20190303git
- Rebase to 5.4-rc6 - Rebase to 5.4-rc6
- Add IgnoreOnIsolate to systemd units
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.29.20190303git * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.29.20190303git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=Hyper-V FCOPY daemon Description=Hyper-V FCOPY daemon
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device
IgnoreOnIsolate=1
[Service] [Service]
ExecStart=/usr/sbin/hypervfcopyd -n ExecStart=/usr/sbin/hypervfcopyd -n

View File

@ -2,6 +2,7 @@
Description=Hyper-V KVP daemon Description=Hyper-V KVP daemon
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
After=network.target After=network.target
IgnoreOnIsolate=1
[Service] [Service]
Type=simple Type=simple

View File

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=Hyper-V VSS daemon Description=Hyper-V VSS daemon
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device
IgnoreOnIsolate=1
[Service] [Service]
ExecStart=/usr/sbin/hypervvssd -n ExecStart=/usr/sbin/hypervvssd -n