<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>27091</bug_id>
          
          <creation_ts>2012-03-18 00:09:15 +0400</creation_ts>
          <short_desc>Невозможность запуска сразу после останова</short_desc>
          <delta_ts>2012-08-13 13:54:49 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apache2-base</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>11531</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>129832</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2012-03-18 00:09:15 +0400</bug_when>
    <thetext>Как я понимаю, при 
service httpd2 stop
управление возвращается сразу, без ожидания завершения дочерних процессов.
Это препятствует выполнению
service httpd2 stop &amp;&amp; service httpd2 start

В /etc/init.d/httpd2 restart реализован с использованием sleep:
restart()
{
        stop
        sleep 1
        conftest || exit $?
        start
}

Возможно, это в основном помогает.

При использовании monit для слежения за httpd2 возникает проблема:
monit выполняет start и потом stop без паузы. Таким образом monit практически неспособен перезапустить httpd2.

Нужно найти какое-то решение.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132718</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2012-08-10 23:40:06 +0400</bug_when>
    <thetext>apache2-2.2.22-alt4 -&gt; sisyphus:

* Fri Aug 10 2012 2012 Aleksey Avdeev &lt;solo@altlinux&gt; 2.2.22-alt4
- %apache2_sbindir/apachectl%apache2_branch replaced by the &quot;official&quot;
  apachectl (patched) (Closes: #27086)
- The function stop() in %_initdir/%apache2_dname now waiting
  (maximum 300 seconds) of the actual completion of the demon
  (Closes: #11531, #27091)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>