http://bugzilla.novell.com/show_bug.cgi?id=516680
User poeml@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=516680#c8
--- Comment #8 from Peter Poeml 2009-06-25 20:05:22 MDT ---
Little real-life example. In the following, I restarted a server after
switching the MPM type, something that's not possible with a "reload" and
requires a "restart". You see two completely independent Apache servers running
after I sent the SIGWINCH:
# /etc/apache2 # jobs
[1] + running tail -F /var/log/apache2/error_log
# /etc/apache2 # rcapache2 restart-graceful
Syntax OK
Shutting down httpd2 gracefully (SIGWINCH)
(waiting for parent to close listen ports and remove pidfile) [Thu Jun 25
19:47:30 2009] [notice] caught SIGWINCH, shutting down gracefully
done
Starting httpd2 (event) [Thu Jun 25 19:47:31 2009] [notice] Apache/2.2.11
(Linux/SUSE) mod_ssl/2.2.11 OpenSSL/0.9.8a configured -- resuming normal
operations
done
# /etc/apache2 #
# /etc/apache2 # ps aufxw | grep htt
root 32570 0.0 0.2 7320 3100 ? Ss Jun24 0:00
/usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL
wwwrun 19849 0.2 0.4 83188 5084 ? Sl 19:47 0:00 \_
/usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL
root 20044 1.5 0.2 7320 3088 ? Ss 19:47 0:00
/usr/sbin/httpd2-event -f /etc/apache2/httpd.conf -DSSL
wwwrun 20049 0.0 0.3 287396 3264 ? Sl 19:47 0:00 \_
/usr/sbin/httpd2-event -f /etc/apache2/httpd.conf -DSSL
wwwrun 20051 1.7 0.6 289504 6556 ? Sl 19:47 0:00 \_
/usr/sbin/httpd2-event -f /etc/apache2/httpd.conf -DSSL
wwwrun 20121 3.0 0.4 287728 4816 ? Sl 19:47 0:00 \_
/usr/sbin/httpd2-event -f /etc/apache2/httpd.conf -DSSL
After 600 seconds, the "old" one of them will terminate automatically
(or earlier, if it has finished all work and no more client is served):
# grep Grace /etc/apache2/httpd.conf.local
GracefulShutdownTimeout 600
This allows for migrations that require a real restart - like a bigger
upgrade, or larger reconfiguration. But normally, a reload is all that's
needed, and that's also what logrotate does.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.