supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Vincent Danen <vdanen@linsec.ca>
Subject: Re: apache2 run script
Date: Fri, 6 Oct 2006 00:12:50 -0600	[thread overview]
Message-ID: <20061006061250.GR14735@annvix.org> (raw)
In-Reply-To: <20061005235825.GB7053@home.power>

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

* Alex Efros <powerman@powerman.asdfGroup.com> [2006-10-06 02:58:25 +0300]:

> On Sun, Oct 01, 2006 at 11:29:40AM +0200, Mark wrote:
> > #!/bin/sh
> > exec 2>&1
> > exec /command/chpst -P /usr/local/apache2/bin/httpd -DNO_DETACH
> 
> Hmm. I'm using Gentoo, and maybe it add some custom patches for apache
> related to this issue, not sure. But AFAIK -DNO_DETACH is enough and no
> process group hack needed anymore. My exec line in run script is:
> 
> exec env -i PATH=$PATH apache2 -DNO_DETACH -k start -DSSL
> 
> Gentoo's package name is: net-www/apache-2.0.58-r2.

This is what I'm using in Annvix:

http://svn.annvix.org/cgi-bin/viewcvs.cgi/releases/2.0-CURRENT/httpd-conf/SOURCES/httpd.run?root=packages&view=markup

It's a little long to paste in here because we do some auto-detection
and definitions of modules for the way our configuration file is laid
out, but we haven't needed to use chpst with httpd, and we also use
-DNO_DETACH.


-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)

[-- Attachment #2: Type: application/pgp-signature, Size: 186 bytes --]

  reply	other threads:[~2006-10-06  6:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-01  9:29 Mark
2006-10-05 23:58 ` Alex Efros
2006-10-06  6:12   ` Vincent Danen [this message]
2006-10-06 14:27     ` Charlie Brady
2006-10-06 14:30   ` Charlie Brady
2006-10-06 15:37     ` Alex Efros
2006-10-06 15:46       ` Charlie Brady
2006-10-06 15:57         ` Alex Efros
2006-10-06 16:01           ` Paul Jarc
2006-10-06 16:21             ` Alex Efros
2006-10-07  0:15               ` Charlie Brady
2006-10-07  0:23                 ` Alex Efros
2006-10-07 18:44                 ` Paul Jarc
2006-10-05 23:59 ` Charlie Brady

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061006061250.GR14735@annvix.org \
    --to=vdanen@linsec.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).