From 43b5db5912e9dde63ea6062103d35477ffc2c61a Mon Sep 17 00:00:00 2001 From: Jan Iven Date: Tue, 8 Oct 2024 11:51:07 +0200 Subject: [PATCH] restart eos_exporter on RPM updates --- eos_exporter.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eos_exporter.spec b/eos_exporter.spec index 97f8b22..c40318c 100644 --- a/eos_exporter.spec +++ b/eos_exporter.spec @@ -6,7 +6,7 @@ Name: eos_exporter Summary: The Prometheus EOS exporter exposes EOS metrics. Version: %{version} -Release: 1%{?dist} +Release: 2%{?dist} License: AGPLv3 BuildRoot: %{_tmppath}/%{name}-buildroot Group: CERN-IT/ST @@ -57,7 +57,12 @@ rm -rf %buildroot/ %preun %systemd_preun %{name}.service +%postun +%systemd_postun_with_restart %{name}.service + %changelog +* Tue Oct 8 2024 Jan Iven 0.1.13-2 +- restart after RPM update * Wed Aug 21 2024 Hugo Gonzalez Labrador 0.1.13-1 - Fix CI by using new docker runners * Tue Aug 20 2024 Hugo Gonzalez Labrador 0.1.12-1