From 1b80cb6012cc2cb2f7577ea2ece96a070dc4ed97 Mon Sep 17 00:00:00 2001 From: wangjiang Date: Fri, 14 Apr 2023 10:37:28 +0800 Subject: [PATCH] service auto start after install (cherry picked from commit 991607e13184bf54725ca8d2227e18bdc894628e) --- sysstat.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysstat.spec b/sysstat.spec index 3af5ba7..6869be0 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,6 +1,6 @@ Name: sysstat Version: 12.5.4 -Release: 5 +Release: 6 Summary: System performance tools for the Linux operating system License: GPLv2+ URL: http://sebastien.godard.pagesperso-orange.fr/ @@ -74,6 +74,9 @@ export compressafter="31" %postun %systemd_postun sysstat.service sysstat-collect.timer sysstat-summary.timer +%posttrans +/usr/bin/systemctl enable sysstat.service >/dev/null 2>&1 + %files -f %{name}.lang %doc CHANGES COPYING CREDITS FAQ.md README.md %{name}-%{version}.lsm %config(noreplace) %{_sysconfdir}/sysconfig/sysstat @@ -85,6 +88,9 @@ export compressafter="31" %{_mandir}/man*/* %changelog +* Fri Apr 14 2023 wangjiang - 12.5.4-6 +- service auto start after install + * Fri Nov 25 2022 zhouwenpei - 12.5.4-5 - update Source0 -- Gitee