Le jeu 05/06/2003 � 19:56, Guillaume Rousse a �crit : > Anyway, it seems to be more productive to discuss on cooker :-) The problem i
It depends.. I miss a lot of messages on Cooker, since it's hard to filter, say, "php", when everyone points to a link that ends in .php... I think we would need a "cooker-server" mailing list, where we only discuss Apache, Samba, LDAP and other server-specific issues. Or maybe we should put that discussion on the ADVX mailing lists? > have is once the new apache-specific config file has been inserted in > /etc/httpd/conf.d, how to reload apache configuration correctly ? > JMD use the following for apache2 itself: > if [ -e /usr/sbin/ADVXctl ]; then /usr/sbin/ADVXctl update;fi > However, i don't see the need to test for /usr/sbin/ADVXctl presence, as it is > needed by package dependencies. Moreover, it is not to be done for all > post/postun, as simple upgrade doesn't need to reload change, only first > installation and removal. I check for the presence of ADVXctl since it was "AESctl" a long time ago, and you're not really forced to upgrade apache-conf from version to version, so in the past, we had error messages. Post scripts for Apache are a major PITA. Doing a graceful restart is not recommended, since some combination of packages, like mod_jk or mod_bwshare, don't like it, and may leave zombie processes. The only 100% proof solution is to stop apache and start it again. But this creates a mess when you upgrade multiple modules, since it takes forever to stop and restart apache all the time. Another thing is php modules. Should they restart Apache? What if people only use the php-cli or use apache but with php-cgi? How do we handle that? > Sofar, i've used the following: > %post > if [ $1 -eq 1 ]; then > /sbin/service httpd graceful > fi > > %postun > if [ $1 -eq 0 ]; then > /sbin/service httpd graceful > fi > Is there anything better ? Could this be turned into some additional rpm macro > ? -- Jean-Michel Dault <[EMAIL PROTECTED]>
