From 57afc288617f9daad8ea58a81e2a2c45e69cc9bb Mon Sep 17 00:00:00 2001 From: si-gui <245140120@qq.com> Date: Sat, 19 Sep 2020 17:08:43 +0800 Subject: [PATCH] scripts when uninstall in %preun and %postun should watchdog-ping.service but not watchdog.ping.service --- watchdog.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchdog.spec b/watchdog.spec index 155242a..80cf992 100644 --- a/watchdog.spec +++ b/watchdog.spec @@ -47,11 +47,11 @@ install -Dd -m0755 %{buildroot}%{_libexecdir}/watchdog/scripts %preun %systemd_preun watchdog.service -%systemd_preun watchdog.ping.service +%systemd_preun watchdog-ping.service %postun %systemd_postun_with_restart watchdog.service -%systemd_postun_with_restart watchdog.ping.service +%systemd_postun_with_restart watchdog-ping.service %triggerun -- watchdog < 5.9-4