[bugs] [Bug 932] Changed - Please use condrestart in RPM scripts where possible

bugs@bugs.horde.org bugs@bugs.horde.org
Tue Oct 22 22:04:35 2002


http://bugs.horde.org/show_bug.cgi?id=932

*** shadow/932	Tue Oct 22 17:09:52 2002
--- shadow/932.tmp.4318	Tue Oct 22 18:04:34 2002
***************
*** 32,34 ****
--- 32,80 ----
  No, but would it kill you to actually give us a patch? I'm not familiar with RPM
  internals, and the guy who does our RPMS is swamped with the job that actually
  pays him.
+ 
+ ------- Additional Comments From jpdalbec@ysu.edu  10/22/02 18:04 -------
+ diff -uN redhat/SPECS/horde.spec horde.spec
+ --- redhat/SPECS/horde.spec     Sat Apr  6 12:48:37 2002
+ +++ horde/packaging/redhat/rh7-horde.spec       Tue Oct 22 16:47:29 2002
+ @@ -100,13 +100,13 @@
+  else
+         echo "Include %{apachedir}/conf/horde.conf"
+ >>%{apachedir}/conf/httpd.conf
+  fi
+ -/sbin/service httpd restart
+ +/sbin/service httpd condrestart
+  sleep 1  # settling time vs. installing multiple RPMs at a time
+ 
+  %postun
+  if [ $1 -eq 0 ]; then
+      perl -pi -e 's/^/#/ if (/^Include.*horde.conf$/i);'
+ %{apachedir}/conf/httpd.conf
+ -    /sbin/service httpd restart
+ +    /sbin/service httpd condrestart
+      sleep 1  # settling time vs. installing multiple RPMs at a time
+  fi
+ 
+ diff -uN redhat/SPECS/imp.spec imp.spec
+ --- redhat/SPECS/imp.spec       Sat Apr  6 12:48:37 2002
+ +++ imp/packaging/redhat/rh7-imp.spec   Tue Oct 22 16:47:51 2002
+ @@ -62,7 +62,7 @@
+  else
+         echo "Include %{apachedir}/conf/imp.conf" >>%{apachedir}/conf/httpd.conf
+  fi
+ -/sbin/service httpd restart
+ +/sbin/service httpd condrestart
+  sleep 1  # settling time vs. installing multiple RPMs at a time
+  cat <<_EOF2_
+ 
+ @@ -85,7 +85,7 @@
+  %postun
+  if [ $1 -eq 0 ]; then
+      perl -pi -e 's/^/#/ if (/^Include.*imp.conf$/i);'
+ %{apachedir}/conf/httpd.conf
+ -    /sbin/service httpd restart
+ +    /sbin/service httpd condrestart
+      sleep 1  # settling time vs. installing multiple RPMs at a time
+  fi
+ 
+