В некоторых случаях, при рестарте, старый процесс не успевает остановиться: Starting httpd2 service: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Помогает что-то вроде вот такого: --- httpd2.old 2015-06-10 14:38:16.000000000 +0400 +++ httpd2 2015-06-10 14:28:26.000000000 +0400 @@ -116,6 +116,7 @@ { stop RETVAL=$? + sleep 2 if [ $RETVAL -eq 0 ]; then conftest || exit $? start
apache2-1:2.4.28-alt1.S1 -> sisyphus: Tue Oct 10 2017 Anton Farygin <rider@altlinux.ru> 1:2.4.28-alt1.S1 - new version 2.4.28 - disabled NameVirtualHost directive in ports_all.conf (closes: #32269) - increased timeout for restarting httpd on SysVinit sytems (closes: #31062) - increased LOOPSSTART and TimeoutStartSec (closes: #33978) - fixes: * CVE-2017-9798 Corrupted or freed memory access