Accepting request 239539 from home:fcrozat:branches:Virtualization

- Enable systemd service at initial install, it is needed for
  udev rules to properly start the agent.

OBS-URL: https://build.opensuse.org/request/show/239539
OBS-URL: https://build.opensuse.org/package/show/Virtualization/spice-vdagent?expand=0&rev=6
This commit is contained in:
Olaf Hering 2014-07-07 09:47:07 +00:00 committed by Git OBS Bridge
parent 74fbe70d53
commit b4790d3ec6
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 1 14:10:31 UTC 2014 - fcrozat@suse.com
- Enable systemd service at initial install, it is needed for
udev rules to properly start the agent.
-------------------------------------------------------------------
Tue May 27 08:45:45 CEST 2014 - ohering@suse.de

View File

@ -67,11 +67,19 @@ rm -rf %{buildroot}%{_sysconfdir}/rsyslog.d
# create rc symlink
ln -s service %{buildroot}%{_sbindir}/rcspice-vdagentd
mkdir -p %{buildroot}%{_datadir}/gdm/greeter/autostart
mv %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/*.desktop %{buildroot}%{_datadir}/gdm/greeter/autostart
rm -fr %{buildroot}%{_datadir}/gdm/autostart
%pre
%service_add_pre spice-vdagentd.service
%post
%service_add_post spice-vdagentd.service
if [ "$1" -eq 1 ]; then
systemctl -q enable spice-vdagentd.service || :
fi
%preun
%service_del_preun spice-vdagentd.service