From: Paulo Vital <pvital(a)linux.vnet.ibm.com>
Since the new main service process is wokd.service, during the upgrade from
Kimchi 1.5.1 (or previous versions) to the new Wok and Kimchi 2.0 RPM's, the
service kimchid must be stopped before the installation of the new service.
Signed-off-by: Paulo Vital <pvital(a)linux.vnet.ibm.com>
---
src/wok/plugins/kimchi/contrib/kimchi.spec.fedora.in | 3 +++
src/wok/plugins/kimchi/contrib/kimchi.spec.suse.in | 3 +++
2 files changed, 6 insertions(+)
diff --git a/src/wok/plugins/kimchi/contrib/kimchi.spec.fedora.in
b/src/wok/plugins/kimchi/contrib/kimchi.spec.fedora.in
index e987856..68ca4f6 100644
--- a/src/wok/plugins/kimchi/contrib/kimchi.spec.fedora.in
+++ b/src/wok/plugins/kimchi/contrib/kimchi.spec.fedora.in
@@ -72,6 +72,9 @@ if [ $1 -eq 2 ]; then
mkdir -p %{_tmppath}/kimchi
cp %{_sharedstatedir}/kimchi/objectstore %{_tmppath}/kimchi/
touch %{_tmppath}/kimchi/need_update
+
+ # Stops kimchid.service process since the main service is wokd now
+ systemctl stop kimchid.service
fi
fi
diff --git a/src/wok/plugins/kimchi/contrib/kimchi.spec.suse.in
b/src/wok/plugins/kimchi/contrib/kimchi.spec.suse.in
index 571cb1f..56d675b 100644
--- a/src/wok/plugins/kimchi/contrib/kimchi.spec.suse.in
+++ b/src/wok/plugins/kimchi/contrib/kimchi.spec.suse.in
@@ -60,6 +60,9 @@ if [ $1 -eq 2 ]; then
mkdir -p %{_tmppath}/kimchi
cp %{_var}/lib/kimchi/objectstore %{_tmppath}/kimchi/
touch %{_tmppath}/kimchi/need_update
+
+ # Stops kimchid.service process since the main service is wokd now
+ systemctl stop kimchid.service
fi
fi
--
2.4.3