From d344c85edcd9d62766679c63574a4035368391f5 Mon Sep 17 00:00:00 2001 From: wangjiang Date: Fri, 14 Apr 2023 10:35:44 +0800 Subject: [PATCH] service auto start after install (cherry picked from commit e2b773684d4dd75666480ce0bec5f3a9c03a5393) --- sysstat.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysstat.spec b/sysstat.spec index 457e081..995481d 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,6 +1,6 @@ Name: sysstat Version: 12.2.1 -Release: 3 +Release: 4 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.2.1-4 +- service auto start after install + * Fri Mar 17 2023 zhangpan - 12.2.1-3 - enable test -- Gitee