delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/13/22:58:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 13 Feb 2005 22:57:41 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Ronald S Woan <woan AT woan DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Apache as a Windows Service?
In-Reply-To: <200502120253.j1C2qcWa022955@world.waena.edu>
Message-ID: <Pine.GSO.4.61.0502132255040.11283@slinky.cs.nyu.edu>
References: <200502120253 DOT j1C2qcWa022955 AT world DOT waena DOT edu>
MIME-Version: 1.0

On Fri, 11 Feb 2005, Ronald S Woan wrote:

> have read /usr/share/doc/Cygwin/apache-1.3.29-1.README which indicates all
> you need is the -a "-F" flag. I did have to run rebaseall which cause httpd
> to fail which was fixed using setup to do a reinstall of apache. Problem now
> is I quit my shell that started the httpd daemon and disconnected, httpd
> dies, so it seems like the windows service is the best option to keep it
> running even when I am logged off.
>
> ronw AT brisket /usr/share/doc/Cygwin
> $ cygrunsrv -I apache -p /usr/sbin/httpd.exe -a "-F"
> ronw AT brisket /usr/share/doc/Cygwin
> $ cygrunsrv -S apache
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> The service has not been started.

Check that your /etc/passwd and /etc/group are up-to-date.  Also, check
both /var/log/httpd.log and the Windows Event Log.

> ronw AT brisket /usr/share/doc/Cygwin
> $ /usr/sbin/httpd.exe -F

Yes, this would cause the daemon to be tied to the opening shell.  If you
can't figure out why the service approach doesn't work for you, you might
try "setsid /usr/sbin/httpd.exe -F".
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019