Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 383957

Summary: www-servers/apache-2.2.21 init script does not work with baselayout-1
Product: Gentoo Linux Reporter: Andrii Yurchuk <ayurchuk>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: critical CC: gabor.garami, holger.gleissner, pva, radisa, Sergiy.Borodych
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: apache2.initd for baselayout-1

Description Andrii Yurchuk 2011-09-21 14:21:41 UTC
With the changes, introduced in Apache 2.2.21 init script, i won't start on my system with the following error:

minuteware ~ # /etc/init.d/apache2 start
 * Starting apache2 ...
/sbin/start-stop-daemon: need at least one of --exec, --pidfile, --user or --name
Try `/sbin/start-stop-daemon --help' for more information.                                                                    
minuteware ~ #

Reproducible: Always

Steps to Reproduce:
1. Install www-servers/apache-2.2.21
2. Try to start with /etc/init.d/apache2 start
Actual Results:  
It won't start

Expected Results:  
It should start

Perhaps somehow connected to the fact I did not upgrade to sys-apps/baselayout-2 (my current installed version is sys-apps/baselayout-1.12.14-r1)
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-09-21 14:31:38 UTC
Hello, thanks for your report.

(In reply to comment #0)
> Perhaps somehow connected to the fact I did not upgrade to
> sys-apps/baselayout-2 (my current installed version is
> sys-apps/baselayout-1.12.14-r1)

This is bad. The dev community cannot easily support packages that are not in the tree, there are simply too many edge cases and too many support paths.
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-09-21 14:44:10 UTC
(In reply to comment #0)
> Perhaps somehow connected to the fact I did not upgrade to
> sys-apps/baselayout-2 (my current installed version is
> sys-apps/baselayout-1.12.14-r1)

That is indeed the reason. I encourage you to update your baselayout, or you might experience even more breakages over time.
There is no alternative canonical fix, so I am closing this bug.
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2011-09-27 15:47:51 UTC
*** Bug 384551 has been marked as a duplicate of this bug. ***
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-09-29 13:55:01 UTC
*** Bug 384939 has been marked as a duplicate of this bug. ***
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-10-02 18:08:58 UTC
*** Bug 385369 has been marked as a duplicate of this bug. ***
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-10-06 11:07:11 UTC
*** Bug 385845 has been marked as a duplicate of this bug. ***
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 06:47:05 UTC
Created attachment 290143 [details]
apache2.initd for baselayout-1

Guys here is apache2.initd for baselayout-1. I've never tested it but I think it should work.
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2011-10-18 06:47:42 UTC
In any case I agree that best solution is to use openrc and if there are any problems with that - report bugs so we could fix it.