[oe-commits] Riku Voipio : apache2: move pidfile to run

git at git.openembedded.org git at git.openembedded.org
Fri Jul 26 08:56:59 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: 16fad8e6191fddd372e0791e0b6f3d541ce3b738
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=16fad8e6191fddd372e0791e0b6f3d541ce3b738

Author: Riku Voipio <riku.voipio at linaro.org>
Date:   Mon Jul 22 17:04:54 2013 +0300

apache2: move pidfile to run

pidile was stored in /var/apache2/log which is saved over boots.
This might prevent startup of apache2 on boots. Move it to /run
where pidfiles in general belong.

---

 .../recipes-httpd/apache2/apache2_2.4.4.bb         |    2 ++
 meta-webserver/recipes-httpd/apache2/files/init    |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.4.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.4.bb
index cf1e469..8c9416a 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.4.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.4.bb
@@ -68,6 +68,8 @@ do_install_append() {
     # Ensure configuration file pulls in conf.d and modules.d
     printf "\nIncludeOptional ${sysconfdir}/${BPN}/conf.d/*.conf" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
     printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
+    # match with that is in init script
+    printf "\nPidFile /run/httpd.pid" >> ${D}/${sysconfdir}/${BPN}/httpd.conf
 }
 
 SYSROOT_PREPROCESS_FUNCS += "apache_sysroot_preprocess"
diff --git a/meta-webserver/recipes-httpd/apache2/files/init b/meta-webserver/recipes-httpd/apache2/files/init
index 346dc0d..a1adbd7 100755
--- a/meta-webserver/recipes-httpd/apache2/files/init
+++ b/meta-webserver/recipes-httpd/apache2/files/init
@@ -14,7 +14,7 @@ NAME=apache2
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 DAEMON=/usr/sbin/httpd
 SUEXEC=/usr/lib/apache/suexec
-PIDFILE=/var/apache2/logs/httpd.pid
+PIDFILE=/run/httpd.pid
 CONF=/etc/apache2/httpd.conf
 APACHECTL=/usr/sbin/apachectl 
 



More information about the Openembedded-commits mailing list