You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/12/11 13:51:05 UTC
DO NOT REPLY [Bug 41148] New: - no startup option to keep a foreground process
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41148
Summary: no startup option to keep a foreground process
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Core
AssignedTo: bugs@httpd.apache.org
ReportedBy: lkcl@lkcl.net
a very important command-line startup option is missing:
the ability to send all logging to stdout/stderr plus having the
main process in foreground whilst all other child processes/threads
are running - in production mode.
the reason why this is important is because it is a standard way
to run daemons.
and - i am not kidding - apache is the _only_ major free software
service, out of fifty or so that i've come across - that do not have
this option.
there is a specific reason why i need this option: it's because of
depinit. the use of depinit does away completely with the need for
stupid /var/run/*.pid files (it keeps an eye on the main process
and automatically restarts it if that main process dies),
and with the need for opening up separate log files (it can read
from stdout and stderr and send those to another service, for it
to process via optional filter programs and ultimately on to a
destination service e.g. syslogd)
in a few simple lines of c-code depinit replaces all the cruft that
is duplicated in every single service.
and apache is literally the _only_ major free software service that
cannot be 'managed' by depinit.
the reason why it cannot be managed by depinit is because apache forks
as a daemon, closing stdin-out-err etc. etc. so, it has to be treated
as a 'legacy' service, and therefore any paralllel dependencies on
apache cannot be properly managed.
also, depinit cannot give apache a chance to exit properly: it can only
run /etc/init.d/apache2 stop and leave it at that. there's no chance to
find out if that succeeded or failed: after a few seconds, any remaining
processes are terminated with extreme prejudice.
if the option was added to run in foreground, in production mode, then
depinit could send signals to the main apache process to get it to shut
down gracefully, then wait until that main process exited.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41148] - no startup option to keep a foreground process
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41148
------- Additional Comments From lkcl@lkcl.net 2006-12-11 09:23 -------
ok: yes, that works as expected. so the question becomes, really, how come
two experienced linux developers could not find that option, easily, by
looking in every place that they could think of?
man pages, online, documentation - nothing mentions -DFOREGROUND in any
of the kinds of prominent places in which you'd expect to find advice on
how to run the world's most popular web server in a mode which dramatically
changes how it operates.
bizarre!
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41148] - no startup option to keep a foreground process
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41148
------- Additional Comments From lkcl@lkcl.net 2006-12-11 08:57 -------
joe, hi,
thanks for pointing that out! i'll try it out.
funny. been looking for this for nearly 18 months, and richard's been
looking for it for probably three years.
i'll boot up my laptop with depinit on it and let you know, straight away,
if it works.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41148] - no startup option to keep a foreground process
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41148
jorton@redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Component|Core |Documentation
------- Additional Comments From jorton@redhat.com 2006-12-11 09:36 -------
Obligatory "use the source, Luke" jokes aside, no answers... changing to Docs bug.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41148] - no startup option to keep a foreground process
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41148
jorton@redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From jorton@redhat.com 2006-12-11 06:09 -------
What is missing that -DNO_DETACH (prevent the parent from forking) and
-DFOREGROUND (prevent the parent from calling setsid() et al) do not provide?
Use of some hack like -C "ErrorLog '|cat'" can force error logging to stderr,
possibly some easier way with -E and /proc/*/fd.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41148] - no startup option to keep a foreground process
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41148>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41148
slive@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From slive@apache.org 2007-07-31 13:21 -------
Added to the docs for httpd -D in trunk.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org