Drop ConditionVirtualization and WantedBy in units (#1331577)

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
This commit is contained in:
Vitaly Kuznetsov 2016-07-28 13:38:32 +02:00
parent 0ce7815ea3
commit 1f9ef4b2ea
4 changed files with 14 additions and 18 deletions

View File

@ -184,7 +184,10 @@ mkdir -p %{buildroot}%{_sharedstatedir}/hyperv
%post -n hypervkvpd
%systemd_post hypervkvpd.service
if [ $1 > 1 ] ; then
# Upgrade
systemctl --no-reload disable hypervkvpd.service >/dev/null 2>&1 || :
fi
%preun -n hypervkvpd
%systemd_preun hypervkvpd.service
@ -199,7 +202,10 @@ fi
%post -n hypervvssd
%systemd_post hypervvssd.service
if [ $1 > 1 ] ; then
# Upgrade
systemctl --no-reload disable hypervvssd.service >/dev/null 2>&1 || :
fi
%postun -n hypervvssd
%systemd_postun hypervvssd.service
@ -209,7 +215,10 @@ fi
%post -n hypervfcopyd
%systemd_post hypervfcopyd.service
if [ $1 > 1 ] ; then
# Upgrade
systemctl --no-reload disable hypervfcopyd.service >/dev/null 2>&1 || :
fi
%postun -n hypervfcopyd
%systemd_postun hypervfcopyd.service
@ -245,6 +254,8 @@ fi
%changelog
* Thu Jul 28 2016 Vitaly Kuznetsov <vkuznets@redhat.com> - 0-0.15.20160728git
- Rebase to 4.8-rc0 (20160728 git snapshot)
- Disable services and remove ConditionVirtualization, multi-user.target
dependencies switching to udev-only activation (#1331577)
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14.20150702git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

View File

@ -1,11 +1,6 @@
[Unit]
Description=Hyper-V FCOPY daemon
ConditionVirtualization=microsoft
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device
After=sys-devices-virtual-misc-vmbus\x21hv_fcopy.device
[Service]
ExecStart=/usr/sbin/hypervfcopyd -n
[Install]
WantedBy=multi-user.target

View File

@ -1,12 +1,7 @@
[Unit]
Description=Hyper-V KVP daemon
ConditionVirtualization=microsoft
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
After=sys-devices-virtual-misc-vmbus\x21hv_kvp.device
[Service]
Type=simple
ExecStart=/usr/sbin/hypervkvpd -n
[Install]
WantedBy=multi-user.target

View File

@ -1,11 +1,6 @@
[Unit]
Description=Hyper-V VSS daemon
ConditionVirtualization=microsoft
BindsTo=sys-devices-virtual-misc-vmbus\x21hv_vss.device
After=sys-devices-virtual-misc-vmbus\x21hv_vss.device
[Service]
ExecStart=/usr/sbin/hypervvssd -n
[Install]
WantedBy=multi-user.target