!100 use PartOf replace Requires in service to fix self-heal issue

From: @robertxw 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2022-02-28 02:43:59 +00:00 committed by Gitee
commit 473cb6b03d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -50,7 +50,7 @@
Name: NetworkManager
Version: 1.32.12
Epoch: 1
Release: 4
Release: 5
Summary: Network Link Manager and User Applications
License: GPLv2+
URL: https://www.gnome.org/projects/NetworkManager/
@ -475,6 +475,12 @@ fi
%{_datadir}/gtk-doc/html/NetworkManager/*
%changelog
* Sat Feb 26 2022 gaoxingwang <gaoxingwang@huawei.com> - 1.32.12-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix the issue that NetworkManager service does not slf-heal when the dbus service is abnormal
* Mon Jan 17 2022 xu_ping <xuping33@huawei.com> - 1.32.12-4
- Type:bugfix
- ID:NA

View File

@ -0,0 +1,25 @@
From 75e1259d22d10fe05a05c0bda5ce4d5beb5800d5 Mon Sep 17 00:00:00 2001
From: gaoxingwang <gaoxingwang@huawei.com>
Date: Sat, 26 Feb 2022 14:59:43 +0800
Subject: [PATCH] use PartOf replace Requires in service
---
data/NetworkManager.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in
index b29b634..c9a9d88 100644
--- a/data/NetworkManager.service.in
+++ b/data/NetworkManager.service.in
@@ -4,7 +4,7 @@ Documentation=man:NetworkManager(8)
Wants=network.target dbus.socket
After=network-pre.target dbus.service dbus.socket
Before=network.target @DISTRO_NETWORK_SERVICE@
-Requires=dbus.service
+PartOf=dbus.service
[Service]
Type=dbus
--
2.27.0