1 Star 0 Fork 59

心之歌/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xinzhige/NetworkManager.git
git@gitee.com:xinzhige/NetworkManager.git
xinzhige
NetworkManager
NetworkManager
master

搜索幫助