/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.
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.
(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?
(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
(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?