Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384997

Summary: www-servers/apache shouldn't restart in case of config errors
Product: Gentoo Linux Reporter: Christian Ruppert (idl0r) <idl0r>
Component: [OLD] ServerAssignee: Peter Volkov (RETIRED) <pva>
Status: RESOLVED FIXED    
Severity: normal CC: apache-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=384753
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Ruppert (idl0r) gentoo-dev 2011-09-29 21:18:36 UTC
Please add config checks for reload/restart, like I did for net-proxy/haproxy or net-dns/bind. E.g. bug 384753
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2011-10-08 17:15:35 UTC
Christian, checks are already there:

 # /etc/init.d/apache2 reload
 * apache2 has detected an error in your setup:
Syntax error on line 3 of /etc/apache2/httpd.conf:
Invalid command 'some', perhaps misspelled or defined by a module not included in the server configuration
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2011-10-08 17:18:08 UTC
For reload yes, sorry but not for restart.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 06:43:39 UTC
Thank you for report. Fixed in 2.2.21-r1.