From e1c0aa6eef6293e389b45802878f06bb83a43269 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Mon, 4 Oct 2010 14:21:14 +0200 Subject: [PATCH] dom0 rpm: start/stop qubes services for install/update --- rpm_spec/core-dom0.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index f058595a..33a3172f 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -172,6 +172,10 @@ for i in /usr/share/qubes/icons/*.png ; do xdg-icon-resource install --novendor --size 48 $i done +/etc/init.d/qubes_core start +/etc/init.d/qubes_netvm start + + %clean rm -rf $RPM_BUILD_ROOT @@ -180,8 +184,19 @@ if ! grep -q ^qubes: /etc/group ; then groupadd qubes fi +if [ "$1" -gt 1 ] ; then + # upgrading already installed package... + /etc/init.d/qubes_netvm stop + /etc/init.d/qubes_core stop +fi + + %preun if [ "$1" = 0 ] ; then + # no more packages left + /etc/init.d/qubes_netvm stop + /etc/init.d/qubes_core stop + for i in /usr/share/qubes/icons/*.png ; do xdg-icon-resource uninstall --novendor --size 48 $i done