Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 211690
Alias:
Product:
Component:
Status: CLOSED
Resolution: DUPLICATE of bug 110556
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Patrick <mail@patrick-nagel.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
apache2.patch Adds a 'check-if-really-stopped' loop into the stop() function of the apache2 init script patch Patrick 2008-02-28 04:04 0000 381 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 211690 depends on: Show dependency tree
Bug 211690 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-02-28 03:35 0000
For some time now, I run into the following problem:

# /etc/init.d/apache2 restart
 * Stopping apache2 ...                                                   [ ok
]
 * Starting apache2 ...
httpd (pid 17167) already running                                         [ ok
]

The init script says 'ok', but afterwards apache is actually NOT running.

When running the init script again, you get:

# /etc/init.d/apache2 restart
 * Stopping apache2 ...
httpd (no pid file) not running                                           [ ok
]
 * Starting apache2 ...                                                   [ ok
]

This is far from optimal and should be fixed.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/apache2 restart

Actual Results:  
Apache stops, but doesn't get started again, although the init script claims
everything worked ok.

Expected Results:  
Apache restarts.

------- Comment #1 From Patrick 2008-02-28 04:04:04 0000 -------
Created an attachment (id=144808) [details]
Adds a 'check-if-really-stopped' loop into the stop() function of the apache2
init script

I'm sure this could be done better... but as roothorick@#gentoo said: "a quick
fix now and an optimal solution later is better than merely an optimal solution
later" ;)

------- Comment #2 From Jakub Moc (RETIRED) 2008-02-28 05:05:37 0000 -------
Nope, not going to happen.

*** This bug has been marked as a duplicate of bug 110556 ***

------- Comment #3 From Patrick 2008-02-28 05:24:20 0000 -------
(In reply to comment #2)
> Nope, not going to happen.
> 
> *** This bug has been marked as a duplicate of bug 110556 ***
> 

Thanks for the lesson: We don't want to have workarounds that make buggy
software usable. Instead we let everybody write their own workaround and give
unhelpful comments to people who suggest a feasible solution in public.

Good that I know that now, so I can adjust my behaviour and be as unhelpful as
possible.

------- Comment #4 From Jakub Moc (RETIRED) 2008-02-28 05:30:45 0000 -------
The above patch doesn't solve anything, while potentially causing serious
issues like being completely unable to do reboot a box gracefully due to
infinite stop loop. 

As noted on the original bug, get apache fixed properly upstream.

------- Comment #5 From Patrick 2008-02-28 05:42:55 0000 -------
(In reply to comment #4)
> The above patch doesn't solve anything, while potentially causing serious
> issues like being completely unable to do reboot a box gracefully due to
> infinite stop loop. 

Ridiculous. Calling '/etc/init.d/apache2 restart' will result in having apache2
not running at all afterwards - is that your idea of something working
'gracefully'?

> As noted on the original bug, get apache fixed properly upstream.

I totally agree. But as has been written before: "a quick
fix now and an optimal solution later is better than merely an optimal solution
later".

And PLEASE oh PLEASE spare the "it's not our responsibility" crap.

------- Comment #6 From Jakub Moc (RETIRED) 2008-02-28 05:48:20 0000 -------
We are not interested in hacks; sorry. Since this apparently won't go anywhere
in a productive way, please note that this bug is a duplicate and CLOSED.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug