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

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

    <bug>
          <bug_id>2928</bug_id>
          
          <creation_ts>2003-09-02 17:51:17 +0400</creation_ts>
          <short_desc>httpd startup while httpd-perl running may lead to confusion</short_desc>
          <delta_ts>2005-08-30 02:28:40 +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>apache</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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Alexander Bokovoy">ab</assigned_to>
          <cc>at</cc>
    
    <cc>cas</cc>
    
    <cc>crux</cc>
    
    <cc>ender</cc>
    
    <cc>lakostis</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>mithraen</cc>
    
    <cc>qa_viy</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
    
    <cc>solo</cc>
    
    <cc>viy</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5937</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2003-09-02 17:51:17 +0400</bug_when>
    <thetext>if httpd-perl starts by itself, it binds to :80;
subsequent attempt to start vanilla httpd will tell us &quot;OK&quot; but not start it.

well httpd-perl *will* serve the requests, but the message is confusing:
&quot;service httpd status&quot; will tell it&apos;s down, and /etc/httpd/conf/httpd.conf
changes won&apos;t do any difference.

should we check httpd-perl running in /etc/initd.d/httpd::start() ?
should we then do something to httpd-perl and restart it after httpd start?
or notify the administrator and fail?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5958</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2003-09-03 15:23:00 +0400</bug_when>
    <thetext>done like this:

start()
{
        if [ &quot;$1&quot; != &quot;again&quot; ]; then
                if status --pidfile &quot;$PERLPIDFILE&quot; --expect-user root \
                          --expect-user root -- httpd-perl &gt;&amp;/dev/null; then
                        echo &quot;Warning: httpd-perl is already running, check
&apos;service httpd-perl extendedstatus&apos;&quot;
                        passed &quot;httpd-perl already running&quot;
                fi
        fi
        start_daemon --pidfile &quot;$PIDFILE&quot; --lockfile &quot;$LOCKFILE&quot; \
                --expect-user root --name libhttpd.ep -- httpd
        RETVAL=$?
        return $RETVAL
}

stop()
{       
        stop_daemon --pidfile &quot;$PIDFILE&quot; --lockfile &quot;$LOCKFILE&quot; \
                --expect-user root --name libhttpd.ep -- httpd
        if [ &quot;$1&quot; != &quot;nocheck&quot; -a -f &quot;$PERLPIDFILE&quot; ]; then                    
                echo &quot;Warning: httpd-perl is running, check &apos;service httpd-perl
extendedstatus&apos;&quot;
                passed &quot;httpd-perl already running&quot;
        fi
        RETVAL=$?
        return $RETVAL
}

restart()
{       
        stop nocheck
        conftest || exit $?
        start again
}

First implementation (involving e.g. httpd-perl stop when httpd is stopped and
so on) is now considered as too non-modifiable by local administrator who can
e.g. port-separate the instances and thus not need the chain restarts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5978</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2003-09-04 15:27:46 +0400</bug_when>
    <thetext>* Wed Sep 03 2003 Michael Shigorin &lt;mike@altlinux.ru&gt; 1.3.28rusPL30.18-alt2
- httpd.init.Sisyphus now checks for some situations involving httpd-perl
  when silent breakage could occur and issues warnings (#2928)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29054</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-08-24 23:00:38 +0400</bug_when>
    <thetext>rolled back in 1.3.33-alt3 (along with something like a fix, see #4994)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29351</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-08-30 02:19:48 +0400</bug_when>
    <thetext>closing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29496</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-08-30 02:28:40 +0400</bug_when>
    <thetext>closing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>