Bug 31062 - нестабильно работает service httpd2 restart
: нестабильно работает service httpd2 restart
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/apache2)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2015-06-10 13:38 by
Modified: 2017-10-20 10:30 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2015-06-10 13:38:58
В некоторых случаях, при рестарте, старый процесс не успевает остановиться:

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 From 2017-10-20 10:30:49 -------
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