git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] instaweb: make it compatible with Mac OS X 10.5's apache installation.

From
Junio C Hamano <gitster@pobox.com>
Date
May 12, 2008, 18:42 UTC
Message-ID
<7v7idzz7no.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200805121952.55492.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 11 quoted lines
> Maybe you can use a function like this not tested one:
>
> check_cmd() {
> 	cmd="$1"
>
> 	if type "$cmd" > /dev/null 2>&1; then
> 		if "$cmd" -v | grep Apache > /dev/null 2>&1; then
> 			httpd=$(echo "$cmd" | sed "s/apache2/httpd/")
> 		fi
> 	fi
> }

One worry I have with that approach is if any and all random implementations of "httpd" that live somewhere in path do not do any harm when started with "-v" option. Namely, they should exit without becoming a daemon and/or start the service.

I am not convinced that would be the case.
Previous: Christian CouderNext: nathan spindel
Message 4 of 6 in “instaweb: make it compatible with Mac OS X 10.5's apache installation.”
  1. instaweb: make it compatible with Mac OS X 10.5's apache installation.nathan spindel, May 11, 2008
  2. nathan spindelMay 11, 2008
  3. Christian CouderMay 12, 2008
  4. Junio C HamanoMay 12, 2008
  5. nathan spindelMay 13, 2008
  6. Jakub NarebskiMay 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.