!2 scripts when uninstall in %preun and %postun should watchdog-ping.service but not watchdog.ping.service

From: @si-gui
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-09-19 17:50:23 +08:00 committed by Gitee
commit 5119cdc766

View File

@ -1,7 +1,7 @@
Name: watchdog
Summary: A powerful software and/or Hardware watchdog daemon and/or device
Version: 5.15
Release: 4
Release: 5
License: GPLv2+
URL: http://sourceforge.net/projects/watchdog/
Source0: http://downloads.sourceforge.net/watchdog/watchdog-%{version}.tar.gz
@ -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
@ -72,5 +72,8 @@ install -Dd -m0755 %{buildroot}%{_libexecdir}/watchdog/scripts
%{_libexecdir}/watchdog/scripts
%changelog
* Sat Sep 19 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 5.15-5
- scripts when uninstall in %preun and %postun should watchdog-ping.service but not watchdog.ping.service
* Mon Apr 27 2020 chengzihan <chengzihan2@huawei.com> - 5.15-4
- Package init