From 03ba0f4554ff5644e5ae2665971ebea5705116d9 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Feb 14 2020 10:53:23 +0000 Subject: condrestart collectd on upgrade --- diff --git a/python-collectd_puppet.spec b/python-collectd_puppet.spec index 95d6d53..3517318 100644 --- a/python-collectd_puppet.spec +++ b/python-collectd_puppet.spec @@ -4,7 +4,7 @@ Name: python-%{module_name} Version: 2.0.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Collectd plugin to monitor puppet agents License: ASL 2.0 @@ -16,6 +16,7 @@ Requires: collectd-python BuildRequires: python3-devel BuildRequires: python3dist(setuptools) +BuildRequires: systemd-rpm-macros %description @@ -40,6 +41,9 @@ rm -r src/%{module_name}.egg-info %install %py3_install +%postun +%systemd_postun_with_restart collectd.service + %files -n python3-%{module_name} %license LICENSE %doc README.rst NEWS.rst @@ -48,6 +52,9 @@ rm -r src/%{module_name}.egg-info %{python3_sitelib}/%{module_name}-%{version}-py?.?.egg-info %changelog +* Fri Feb 14 2020 Steve Traylen - 2.0.0-7 +- condrestart collectd on upgrade + * Thu Jan 30 2020 Fedora Release Engineering - 2.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild