BoF Protocol

Joshua N Pritikin jpritikin at pobox.com
Thu Jun 14 03:20:22 UTC 2007


On Wed, Jun 13, 2007 at 12:23:56PM +0000, Gerrit Pape wrote:
> Erich Schubert <erich.schubert <at> gmail.com> writes:
> > From the BoF docs, the plan is currently to support only the
> > non-forking (i.e. foreground) approach. Some apps that don't work this
> > way that I'm aware of are apache and mysql.
> > (Mysql can be run in foreground though. There is just some odd
> > shell-wrapper around it that tries to make sure it restarts on a
> > crash... this isn't really needed with a better init system)
> 
> apache2 can be told to run in foreground with the command line option
> -DNO_DETACH.  IIRC it doesn't create its own process group in this case
> though, 'chpst -P apache2 -DNO_DETACH' can fix that.

Redirecting all the logs is a hassel though. I have:

ErrorLog /dev/fd/3

(in ./run)
exec chpst -P /usr/sbin/apache2 -DNO_DETACH -E /dev/fd/1 3>&1

And that just takes care of the errorlog. Accesslogs are still managed 
by apache2.

-- 
Make April 15 just another day, visit http://fairtax.org



More information about the initscripts-ng-devel mailing list