Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: Uwe Mayer X-Priority: 3 (Normal) Message-ID: <1065180889.20021004155500@planet-interkom.de> To: Christoffer Walther CC: Max Bowsher , cygwin AT cygwin DOT com Subject: Re: cygwin service In-Reply-To: <3D9D8264.FDA788D8@cvt.dk> References: <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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/