modify the service file path to load the service correctly

This commit is contained in:
liquor 2020-09-19 11:44:13 +08:00
parent b9a962f694
commit 82e1bfdf55

View File

@ -1,6 +1,6 @@
Name: powertop
Version: 2.9
Release: 11
Release: 12
Summary: Power consumption tool for Linux
License: GPLv2
URL: http://01.org/powertop/
@ -46,13 +46,13 @@ install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/powertop.service
%pre
%preun
%systemd_preun %{SOURCE1}
%systemd_preun powertop.service
%postun
%systemd_postun_with_restart %{SOURCE1}
%systemd_postun_with_restart powertop.service
%post
%systemd_post %{SOURCE1}
%systemd_post powertop.service
touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.powertop} &> /dev/null || :
@ -70,6 +70,12 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
%changelog
* Sat Sep 19 2020 liquor <lirui130@huawei.com> - 2.9-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify the service file path to load the service correctly
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 2.9-11
- Type:bugfix
- ID:NA