Bug 31062 - нестабильно работает service httpd2 restart
Summary: нестабильно работает service httpd2 restart
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: apache2 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-10 13:38 MSK by Sergey Y. Afonin
Modified: 2017-10-20 10:30 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Y. Afonin 2015-06-10 13:38:58 MSK
В некоторых случаях, при рестарте, старый процесс не успевает остановиться:

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
Comment 1 Repository Robot 2017-10-20 10:30:49 MSK
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