32 lines
927 B
Diff
32 lines
927 B
Diff
From 95e3d13a39371bc6caea5ae34f32c9136b16f9fa Mon Sep 17 00:00:00 2001
|
|
From: zhongtao <zhongtao17@huawei.com>
|
|
Date: Tue, 5 Dec 2023 11:48:18 +0000
|
|
Subject: [PATCH 170/181] !2294 keep the service status unchanged after iSulad
|
|
service upgrade * keep the service status unchanged after iSulad service
|
|
upgrade
|
|
|
|
---
|
|
iSulad.spec | 6 ------
|
|
1 file changed, 6 deletions(-)
|
|
|
|
diff --git a/iSulad.spec b/iSulad.spec
|
|
index 6f84273a..d3799784 100644
|
|
--- a/iSulad.spec
|
|
+++ b/iSulad.spec
|
|
@@ -167,12 +167,6 @@ if [ -e %{_unitdir}/lcrd.service.rpmsave ]; then
|
|
mv %{_unitdir}/lcrd.service.rpmsave %{_unitdir}/isulad.service
|
|
sed -i 's/lcrd/isulad/g' %{_unitdir}/isulad.service
|
|
fi
|
|
-systemctl status isulad | grep 'Active:' | grep 'running'
|
|
-if [ $? -eq 0 ]; then
|
|
- systemctl restart isulad
|
|
-else
|
|
- systemctl start isulad
|
|
-fi
|
|
%else
|
|
/sbin/service isulad status | grep 'Active:' | grep 'running'
|
|
if [ $? -eq 0 ]; then
|
|
--
|
|
2.42.0
|
|
|