From 615a5dbf7294e739e64c4db63dafcff368ffac86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=8B=8F=E7=9A=96?= Date: Tue, 18 Jun 2024 08:45:46 +0000 Subject: [PATCH] add back the mistakenly deleted triggerin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙苏皖 (cherry picked from commit 75d1754f321777a8b283f0920018ef99ea81ca24) --- rpcbind.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rpcbind.spec b/rpcbind.spec index ad7b79c..740a5ed 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -3,7 +3,7 @@ Name: rpcbind Version: 1.2.6 -Release: 7 +Release: 8 Summary: Universal addresses to RPC program number mapper License: BSD @@ -88,6 +88,13 @@ fi %postun %systemd_postun_with_restart %{name}.socket %{name}.service +%triggerin -- %{name} > 0.2.2-2.0 +if systemctl -q is-enabled %{name}.socket +then +/bin/systemctl reenable %{name}.socket >/dev/null 2>&1 || : +/bin/systemctl restart %{name}.socket >/dev/null 2>&1 || : +fi + if [ ! -d /var/lib/rpcbind ] then mkdir /var/lib/rpcbind @@ -115,6 +122,12 @@ fi %{_mandir}/man8/*.8.gz %changelog +* Tue Jun 18 2024 sunsuwan - 1.2.6-8 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:add back the mistakenly deleted triggerin + * Sun Jul 02 2023 liuhaipeng - 1.2.6-7 - Type:bugfix - Id:NA -- Gitee