Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515562 - www-servers/apache-2.4.9-r3 - /etc/init.d/apache2 /etc/conf.d/apache2 still use /var/run
Summary: www-servers/apache-2.4.9-r3 - /etc/init.d/apache2 /etc/conf.d/apache2 still u...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2014-06-27 21:55 UTC by Sven E.
Modified: 2014-08-01 15:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven E. 2014-06-27 21:55:46 UTC
/etc/init.d/apache2 start fails (reports failure) even though the daemon gets started correctly.

The reason is a default location of /run for the pid file in the config, while the initscripts defaults to /var/run/.

Reproducible: Always

Actual Results:  
Init script reports failure which is incorrect

Expected Results:  
init script should report successful startup

As /run is the supposed future location for PID files, the init script packaged should be fixed to default to /run.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-07-31 09:53:19 UTC
The location was reverted to /var/run because apache is not limited to Linux where /run is new default but other unixes (like BSD/OSX) as well. Since we have BSD/OSX consumers (look for gentoo prefix) I decided to keep /var/run as default. If you don't like this feel free to change the location in your

  /etc/conf.d/apache2 

file.
Comment 2 Sven E. 2014-07-31 21:31:33 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #1)
> The location was reverted to /var/run because apache is not limited to Linux
> where /run is new default but other unixes (like BSD/OSX) as well. Since we
> have BSD/OSX consumers (look for gentoo prefix) I decided to keep /var/run
> as default. If you don't like this feel free to change the location in your
> 
>   /etc/conf.d/apache2 
> 
> file.

Was the default config fixed instead then?
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-01 04:54:27 UTC
(In reply to Sven E. from comment #2)
> (In reply to Lars Wendler (Polynomial-C) from comment #1)
> > The location was reverted to /var/run because apache is not limited to Linux
> > where /run is new default but other unixes (like BSD/OSX) as well. Since we
> > have BSD/OSX consumers (look for gentoo prefix) I decided to keep /var/run
> > as default. If you don't like this feel free to change the location in your
> > 
> >   /etc/conf.d/apache2 
> > 
> > file.
> 
> Was the default config fixed instead then?

It was never broken. The commit which reverted /run to /var/run can be seen here:

http://git.overlays.gentoo.org/gitweb/?p=proj/apache.git;a=commitdiff;h=e4c6d9347f3ac7a43f6d452523f17c9d0174a3e6
Comment 4 Sven E. 2014-08-01 15:36:17 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #3)
> (In reply to Sven E. from comment #2)
> > (In reply to Lars Wendler (Polynomial-C) from comment #1)
> > > The location was reverted to /var/run because apache is not limited to Linux
> > > where /run is new default but other unixes (like BSD/OSX) as well. Since we
> > > have BSD/OSX consumers (look for gentoo prefix) I decided to keep /var/run
> > > as default. If you don't like this feel free to change the location in your
> > > 
> > >   /etc/conf.d/apache2 
> > > 
> > > file.
> > 
> > Was the default config fixed instead then?
> 
> It was never broken. The commit which reverted /run to /var/run can be seen
> here:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/apache.git;a=commitdiff;
> h=e4c6d9347f3ac7a43f6d452523f17c9d0174a3e6

I see, so it was a 'temporary' change in the config.layout which was not reflected in the initscript at that time? Otherwise I don't see why the PidFile entry in httpd.conf was relocated to /run after an upgrade?