delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/04/09:51:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: Fri, 4 Oct 2002 15:55:00 +0200
From: Uwe Mayer <merkosh AT planet-interkom DOT de>
Reply-To: Uwe Mayer <merkosh AT planet-interkom DOT de>
X-Priority: 3 (Normal)
Message-ID: <1065180889.20021004155500@planet-interkom.de>
To: Christoffer Walther <cw AT cvt DOT dk>
CC: Max Bowsher <maxb AT ukf DOT net>, cygwin AT cygwin DOT com
Subject: Re: cygwin service
In-Reply-To: <3D9D8264.FDA788D8@cvt.dk>
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0210041235500 DOT 13503-100000 AT moria>
<3D9D7BDA DOT 605B181C AT cvt DOT dk> <009101c26b9a$0f755ac0$9949893e AT bowsher DOT foo>
<3D9D8264 DOT FDA788D8 AT cvt DOT dk>
MIME-Version: 1.0

Hallo Christoffer,

Friday, October 4, 2002, 1:58:28 PM, you wrote:


CW> I can see the sshd runs as 'service' even when I close the
CW> shell window, thats nice. I wanted to do the same with apache,
CW> I did: '/sbin/cygrunsrv -I apache -p /usr/sbin/apachectl -a start'

CW> However, when I do: '/bin/cygrunsrv -S apache', I get :

A "ps -aW" should show apache running nevertheless.

CW> ".. error startign service, QueryServiceStatus: win32 error 1062: 
CW> The service has not been started".

CW> How can I correct this, or where can I find documentation on this?

Ahh - I can help here.

In the documentation for cygrunsrv (/usr/doc/Cygwin/cygrunsrv.README)
under General Notes you'll see that the daemon has to be started
without forking a child and then exiting - what usualy daemons do.

Run "/usr/sbin/httpd -h" for help on httpd.
There you'll see the switch for starting apache without forking into
background is "-k"

Use: "/bin/cygrunsrv -I apache -p /usr/sbin/httpd -a '-k' " instead.

Ciao
Uwe                            mailto:merkosh AT planet-interkom DOT de


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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