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 Subject: Re: cygrunsrv and apache From: David Means To: cygwin AT cygwin DOT com In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-iUswIiSeh57rMMu9L1No" Organization: The-Means.net Message-Id: <1042679111.22861.4.camel@milo> Mime-Version: 1.0 Date: 15 Jan 2003 20:05:11 -0500 --=-iUswIiSeh57rMMu9L1No Content-Type: multipart/alternative; boundary="=-HIgDTt6u1nRZwtmmc6sv" --=-HIgDTt6u1nRZwtmmc6sv Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Does adding the --nodetach to cygrunsrv (I think that's the correct spelling ) help? I had a similar problem with rsyncd and adding it resolved my problem. On Wed, 2003-01-15 at 18:24, Jonathan Albrecht wrote: > I've been trying to run apache as a service using cygrunsrv. I haven't=20 > changed the httpd.conf and running /usr/sbin/httpd from the command line=20 > works fine. Here is what I have done: >=20 > > cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a -k -e=20 > "CYGWIN=3Dntsec nosmbntsec binmode tty" > =20 > > cygrunsrv -S apache=20 >=20 > cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 106= 2: > The service has not been started. >=20 > I've tried variations on the spaces and quotes in the command line but=20 > nothing has worked. Any ideas? >=20 > Here is my cygcheck -s output: >=20 > > cygcheck -s >=20 > Cygwin Win95/NT Configuration Diagnostics > Current System Time: Wed Jan 15 18:17:40 2003 >=20 { snip }=20 --=20 David Means Real programs don't eat cache. --=-HIgDTt6u1nRZwtmmc6sv Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Does adding the --nodetach to cygrunsrv (I think that's the correct spellin= g ) help?

I had a similar problem with rsyncd and adding it resolved my problem.

On Wed, 2003-01-15 at 18:24, Jonathan Albrecht wrote:
I've been trying to run apache a=
s a service using cygrunsrv. I haven't=20
changed the httpd.conf and running /usr/sbin/httpd from the command line=20
works fine. Here is what I have done:

 > cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -=
a -k -e=20
"CYGWIN=3Dntsec nosmbntsec binmode tty"
=20
          > cygrunsrv -S apache=20

cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

I've tried variations on the spaces and quotes in the command line but=20
nothing has worked. Any ideas?

Here is my cygcheck -s output:

 > cygcheck -s

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Jan 15 18:17:40 2003
{ snip }

--=20
David Means

Real programs don't eat cache.
--=-HIgDTt6u1nRZwtmmc6sv-- --=-iUswIiSeh57rMMu9L1No Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEABECAAYFAj4mBUcACgkQUd0KwqAz4aqtdwCfXIPeRBwR/piXodcRYOVhpx7r A5IAoJ5cyxWuRdEsm5VE5cfYKtZLnetZ =sBn5 -----END PGP SIGNATURE----- --=-iUswIiSeh57rMMu9L1No--