apache2 restart

Marcin Krol hawk at pld-linux.org
Tue Oct 7 07:46:49 CEST 2014


> Checking Apache 2.4 Web Server configuration.......................[ DONE ]
> Stopping Apache 2.4 Web Server service.............................[ DONE ]
> Starting Apache 2.4 Web Server service.............................[ FAIL ]
> (98)Address already in use: AH00072: make_sock: could not bind to
> address [::]:80
> (98)Address already in use: AH00072: make_sock: could not bind to
> address 0.0.0.0:80
> no listening sockets available, shutting down
> AH00015: Unable to open logs

Not sure if its the case in PLD but in TLD apache init script doesn't 
wait for all processes to stop (and these scripts were same at some 
point, didn't checked if they're same now).

This happens when some process is busy when receiving kill signal, ie. 
handling page which is doing some large database query and it will not 
quit immediately. It also will always happen when some apache process 
has hung. I'm not seeing this behavior more than few times per year and 
in my case its almost always related to database queries.

Perhaps we should add some checks to wait for all apache processes to 
quit in similar way we do in squid init script?

M.


More information about the pld-devel-en mailing list