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

Bug 515562

Summary: www-servers/apache-2.4.9-r3 - /etc/init.d/apache2 /etc/conf.d/apache2 still use /var/run
Product: Gentoo Linux Reporter: Sven E. <dark>
Component: [OLD] ServerAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 332633    

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?