1 Star 0 Fork 91

胡宇彪 / systemd

forked from src-openEuler / systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
revert-rpm-restart-services-in-posttrans.patch 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
胡宇彪 提交于 2023-07-31 10:00 . sync the patch from v249
From 3b2ba67cfc83905a88e3ebb88a2b43222a06e869 Mon Sep 17 00:00:00 2001
From: wangyuhang <wangyuhang27@huawei.com>
Date: Fri, 17 Jun 2022 14:26:16 +0800
Subject: [PATCH] revert rpm: restart services in %posttrans
Reason:In version 22.03, if we do not add 'systemctl reload or restart --marked' in
%transfiletriggerpostun, %systemd_postun_with_restart will not restart the
service. In order to maintain compatibility with version 20.03, revert the commit
and use the version 20.03 scheme
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/fa97d2fcf64e0558054bee673f734f523373b146
---
src/rpm/macros.systemd.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rpm/macros.systemd.in b/src/rpm/macros.systemd.in
index 8880078..b1a297e 100644
--- a/src/rpm/macros.systemd.in
+++ b/src/rpm/macros.systemd.in
@@ -89,7 +89,7 @@ fi \
%{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_postun_with_restart}} \
if [ $1 -ge 1 ] && [ -x "{{SYSTEMD_UPDATE_HELPER_PATH}}" ]; then \
# Package upgrade, not uninstall \
- {{SYSTEMD_UPDATE_HELPER_PATH}} mark-restart-system-units %{?*} || : \
+ %{_bindir}/systemctl try-restart %{?*} || : \
fi \
%{nil}
--
2.33.0
1
https://gitee.com/huyubiao/systemd.git
git@gitee.com:huyubiao/systemd.git
huyubiao
systemd
systemd
master

搜索帮助