|
@@ -1,6 +1,6 @@
|
|
|
Name: munin
|
|
|
Version: 2.0.21
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
Summary: Network-wide graphing framework (grapher/gatherer)
|
|
|
License: GPLv2 and Bitstream Vera
|
|
|
Group: System Environment/Daemons
|
|
@@ -390,10 +390,8 @@ fi
|
|
|
|
|
|
%preun node
|
|
|
if [ "$1" = 0 ]; then
|
|
|
- for svc in node asyncd fcgi-html fcgi-graph; do
|
|
|
- service munin-${svc} stop &>/dev/null || :
|
|
|
- /sbin/chkconfig --del munin-${svc}
|
|
|
- done
|
|
|
+ service munin-node stop &>/dev/null || :
|
|
|
+ /sbin/chkconfig --del munin-node
|
|
|
fi
|
|
|
|
|
|
%postun node
|
|
@@ -409,10 +407,29 @@ cp -a %{_sysconfdir}/munin/plugins %{_sysconfdir}/munin/plugins.bak || :
|
|
|
%triggerpostun node -- munin-node < 1.4.7
|
|
|
mv -f %{_sysconfdir}/munin/plugins.bak/* %{_sysconfdir}/munin/plugins/ || :
|
|
|
|
|
|
+#
|
|
|
+# async package scripts
|
|
|
+#
|
|
|
+%post async
|
|
|
+/sbin/chkconfig --add munin-asyncd
|
|
|
+
|
|
|
+%preun async
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
+ service munin-asyncd stop &>/dev/null || :
|
|
|
+ /sbin/chkconfig --del munin-asyncd
|
|
|
+fi
|
|
|
+
|
|
|
+#
|
|
|
+# cgi package scripts
|
|
|
+#
|
|
|
+%post cgi
|
|
|
+for svc in cgi-html cgi-graph; do
|
|
|
+ /sbin/chkconfig --add munin-${svc}
|
|
|
+done
|
|
|
|
|
|
%preun cgi
|
|
|
if [ "$1" = 0 ]; then
|
|
|
- for svc in fcgi-html fcgi-graph; do
|
|
|
+ for svc in cgi-html cgi-graph; do
|
|
|
service munin-${svc} stop &>/dev/null || :
|
|
|
/sbin/chkconfig --del munin-${svc}
|
|
|
done
|