Date: Mon, 31 Mar 2014 14:19:41 +0000 From: Robin Geuze <robing@transip.nl> To: "apache@FreeBSD.org" <apache@FreeBSD.org> Subject: Small apache24 rc script fix Message-ID: <a0eccdd8b0b5465f9ffeef67c152683b@AM3PR02MB003.eurprd02.prod.outlook.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hey,
We run apache24 in a chroot and I was trying to optimize the chroot generation but ran into the problem of messy symlinks for the pid file so I made a small patch to the apache24 rc which should make it work perfectly both running in chroot and not in chroot.
The patch is attached, I was wondering whether you could include it in the port so apache chroot works out of the box at least where its the rc script concerned.
Greet,
Robin Geuze
?TransIP B.V.
[-- Attachment #2 --]
65c65
< pidfile="${_pidprefix}.${profile}.pid"
---
> pidfile="${apache24_chroot}${_pidprefix}.${profile}.pid"
125a126,127
> pidfile="${apache24_chroot}${pidfile}"
>
130c132
< if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then
---
> if [ ! "0`check_pidfile ${pidfile} ${apache24_chroot}${command}`" -gt 1 ]; then
144c146
< eval ${command} ${apache24_flags} -t
---
> eval ${apache24_chroot}${command} ${apache24_flags} -t
151c153
< eval ${command} ${apache24_flags} -k graceful
---
> eval ${apache24_chroot}${command} ${apache24_flags} -k graceful
158c160
< eval ${command} ${apache24_flags} -k graceful-stop
---
> eval ${apache24_chroot}${command} ${apache24_flags} -k graceful-stop
184c186
< command="/usr/sbin/setfib -F ${apache24_fib} ${command}"
---
> command="/usr/sbin/setfib -F ${apache24_fib} ${apache24_chroot}${command}"
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a0eccdd8b0b5465f9ffeef67c152683b>
