[munin] minor spec fixes
fenris02
fenris02 at fedoraproject.org
Sat Nov 3 23:20:48 UTC 2012
commit 3051230f6b3e01ef45f23734d295ca07cfeaf3ea
Author: D. Johnson <fenris02 at fedoraproject.org>
Date: Sat Nov 3 18:15:21 2012 -0500
minor spec fixes
munin.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/munin.spec b/munin.spec
index f4357ac..1b8c8d1 100644
--- a/munin.spec
+++ b/munin.spec
@@ -335,6 +335,10 @@ install -m 0755 %{SOURCE13} %{buildroot}/etc/rc.d/init.d/munin-asyncd
# Fix default config file
#sed -i 's,/etc/munin/munin-conf.d,/etc/munin/conf.d,' %{buildroot}/etc/munin/munin.conf
+sed -i '
+ s,#html_strategy.*,html_strategy cron,;
+ s,#graph_strategy.*,graph_strategy cron,;
+ ' %{buildroot}/etc/munin/munin.conf
mkdir -p %{buildroot}/etc/munin/conf.d
mkdir -p %{buildroot}/etc/munin/plugin-conf.d
mkdir -p %{buildroot}/etc/munin/node.d
@@ -417,7 +421,9 @@ fi
%if 0%{?rhel} > 6 || 0%{?fedora} > 15
# Newer installs use systemd
%if 0%{?systemd_preun:1}
- %systemd_preun rarpd.service
+ for svc in node asyncd fcgi-html fcgi-graph; do
+ %systemd_preun munin-${svc}.service
+ done
%else
if [ "$1" = 0 ]; then
for svc in node asyncd fcgi-html fcgi-graph; do
More information about the scm-commits
mailing list