1 Star 0 Fork 58

luoqing/NetworkManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-wants-and-add-requires.patch 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
robertxw 提交于 2021-11-28 21:48 . update NetworkManager to 1.32.12
From 3e79e5f2889bbdec4629e2ea3e3860cfcf9488c4 Mon Sep 17 00:00:00 2001
From: gaoxingwang <gaoxingwang@huawei.com>
Date: Wed, 15 Dec 2021 09:54:34 +0800
Subject: [PATCH] fix wants and add requires
---
data/NetworkManager.service.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in
index e23b3a5..b29b634 100644
--- a/data/NetworkManager.service.in
+++ b/data/NetworkManager.service.in
@@ -1,9 +1,10 @@
[Unit]
Description=Network Manager
Documentation=man:NetworkManager(8)
-Wants=network.target
-After=network-pre.target dbus.service
+Wants=network.target dbus.socket
+After=network-pre.target dbus.service dbus.socket
Before=network.target @DISTRO_NETWORK_SERVICE@
+Requires=dbus.service
[Service]
Type=dbus
@@ -12,6 +13,8 @@ ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/
#ExecReload=/bin/kill -HUP $MAINPID
ExecStart=@sbindir@/NetworkManager --no-daemon
Restart=on-failure
+RestartSec=10s
+
# NM doesn't want systemd to kill its children for it
KillMode=process
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luoqing_kylinsec/NetworkManager.git
git@gitee.com:luoqing_kylinsec/NetworkManager.git
luoqing_kylinsec
NetworkManager
NetworkManager
master

搜索帮助