Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385845 - [www-servers/apache-2.2.21] Init script is wrong with baselayout-1.x
Summary: [www-servers/apache-2.2.21] Init script is wrong with baselayout-1.x
Status: RESOLVED DUPLICATE of bug 383957
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 10:44 UTC by Gabor Garami
Modified: 2011-10-06 11:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed apache2 init script patch (apache2-initscript.patch,760 bytes, patch)
2011-10-06 10:49 UTC, Gabor Garami
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Garami 2011-10-06 10:44:44 UTC
I found a little problem with apache init script. It uses start-stop-daemon with the following syntax:

start-stop-daemon --start -- ${APACHE2} ${APACHE2_OPTS} -k start

It does not works well with older baselayout, and apache does not rely the new baselayout package. But, if this script get a little modification like this:

start-stop-daemon --start --exec ${APACHE2} -- ${APACHE2_OPTS} -k start

it is can be compatible with older systems too. As I read the new start-stop-daemon's manual, it is can use this switch too (for backward compatibility?).

I know <baselayout-2.0 is deprecated, but I think if there is a minor modification for supporting older systems, it can be done for user experience.
Comment 1 Gabor Garami 2011-10-06 10:49:27 UTC
Created attachment 288941 [details, diff]
Proposed apache2 init script patch

Tested, it works both version of baselayout
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-10-06 11:07:11 UTC
We don't support baselayout-1 anymore. Please migrate your systems to baselayout-2/openrc.

http://www.gentoo.org/doc/en/openrc-migration.xml

*** This bug has been marked as a duplicate of bug 383957 ***
Comment 3 Gabor Garami 2011-10-06 11:55:19 UTC
We have a lot of system what we cannot upgrade easily without risks. 

Anyway, this change is breaks the complete apache as it cannot be started/stopped/restarted. I think this change not too big to testing it.

In the other hands, this change pops up the possibility to marking packages what we know they are not working with baselayout-1 somehow to warn users. I think a simple ewarn will be a good solution.