Browse Source

fix VineLinux:0002793

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8868 ec354946-7b23-47d6-9f5a-488ba84defc7
yasumichi 9 years ago
parent
commit
890b6c3a7f
1 changed files with 23 additions and 6 deletions
  1. 23 6
      m/munin/munin-vl.spec

+ 23 - 6
m/munin/munin-vl.spec

@@ -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