[Bug 207905] New: rcapache2 reload should do configtest
https://bugzilla.novell.com/show_bug.cgi?id=207905 Summary: rcapache2 reload should do configtest Product: SUSE Linux 10.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: poeml@novell.com ReportedBy: suse-beta@cboltz.de QAContact: qa@suse.de rcapache2 reload can cause apache to shutdown if there's an error in httpd.conf or one of the files included from there. It's probably needless to say that this is somewhere between annoying and awkward - depending on the number of customers and the amount of changes needed to make apache running again ;-) /etc/init.d/apache2 should do a configtest before reload: --- /etc/init.d/apache2_orig 2006-09-24 21:46:51.000000000 +0200 +++ /etc/init.d/apache2 2006-09-24 21:49:24.000000000 +0200 @@ -204,6 +204,8 @@ rc_status -v ;; reload|force-reload|graceful) + $0 configtest "$@" || { rc_failed $?; rc_exit; } + echo -n "Reload httpd2 (graceful restart)" cmdline=$(echo $apache_bin -f $httpd_conf $server_flags "$@") if eval $cmdline -t &> $logdir/rc$pname.out; then -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207905 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |judas_iscariote@shorewall.net ------- Comment #1 from judas_iscariote@shorewall.net 2006-09-24 15:57 MST ------- yes. it should IMHO ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207905 poeml@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #2 from poeml@novell.com 2006-09-25 05:00 MST ------- Look closer, it is already there: reload|force-reload|graceful) echo -n "Reload httpd2 (graceful restart)" cmdline=$(echo $apache_bin -f $httpd_conf $server_flags "$@") if eval $cmdline -t &> $logdir/rc$pname.out; then ^^^ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207905 suse-beta@cboltz.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED ------- Comment #3 from suse-beta@cboltz.de 2006-09-25 09:55 MST ------- Indeed - I was worried by the "unused" output of rcapache reload :-/ Sorry for annoying you with an invalid bugreport ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207905 ------- Comment #4 from poeml@novell.com 2006-09-25 09:59 MST ------- I'm sure you must have noticed the feature in the past years ;-) Bug reports and suggestiongs are always welcome -- mind you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com