All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-webserver][PATCH] apache2: move pidfile to run
@ 2013-07-22 14:04 Riku Voipio
  2013-07-26  8:30 ` Riku Voipio
  0 siblings, 1 reply; 3+ messages in thread
From: Riku Voipio @ 2013-07-22 14:04 UTC (permalink / raw)
  To: openembedded-devel

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.
---
 meta-webserver/recipes-httpd/apache2/apache2_2.4.4.bb | 2 ++
 meta-webserver/recipes-httpd/apache2/files/init       | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

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 
 
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-webserver][PATCH] apache2: move pidfile to run
  2013-07-22 14:04 [meta-webserver][PATCH] apache2: move pidfile to run Riku Voipio
@ 2013-07-26  8:30 ` Riku Voipio
  2013-07-26  9:08   ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Riku Voipio @ 2013-07-26  8:30 UTC (permalink / raw)
  To: openembedded-devel; +Cc: paul.eggleton

ping?

On 22 July 2013 17:04, Riku Voipio <riku.voipio@linaro.org> wrote:
> 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.
> ---
>  meta-webserver/recipes-httpd/apache2/apache2_2.4.4.bb | 2 ++
>  meta-webserver/recipes-httpd/apache2/files/init       | 2 +-
>  2 files changed, 3 insertions(+), 1 deletion(-)
>
> 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
>
> --
> 1.8.3.1
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-webserver][PATCH] apache2: move pidfile to run
  2013-07-26  8:30 ` Riku Voipio
@ 2013-07-26  9:08   ` Paul Eggleton
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2013-07-26  9:08 UTC (permalink / raw)
  To: Riku Voipio; +Cc: openembedded-devel

Hi Riku,

On Friday 26 July 2013 11:30:34 Riku Voipio wrote:
> On 22 July 2013 17:04, Riku Voipio <riku.voipio@linaro.org> wrote:
> > 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.
> >...
> ping?

Merged to master, thanks.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-26  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22 14:04 [meta-webserver][PATCH] apache2: move pidfile to run Riku Voipio
2013-07-26  8:30 ` Riku Voipio
2013-07-26  9:08   ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.