Discussion:
Running Squid using cygrunsrv
Sindhu Kurnia
2002-02-15 04:29:07 UTC
Permalink
Hi,

This is my first experience of running Squid under cygwin. I successfully
run Squid by direct invoking from Bash shells, but I have fatal issue when
cygrunsrv -I squidcache -d "Squid Web Proxy Cache" -p /usr/bin/squid -a -N
cygrunsrv -S squidcache
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.

Is there something wrong with my step? Anyone please kindly assist me...


Regards.


--
Sindhu Kurnia



--
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/
Robert Collins
2002-02-15 04:30:09 UTC
Permalink
You need to use -D to run squid as a service.

Rob
===
----- Original Message -----
From: "Sindhu Kurnia" <***@se.fujitsu.co.id>
To: <***@cygwin.com>
Sent: Friday, February 15, 2002 3:29 PM
Subject: Running Squid using cygrunsrv
Post by Sindhu Kurnia
Hi,
This is my first experience of running Squid under cygwin. I
successfully
Post by Sindhu Kurnia
run Squid by direct invoking from Bash shells, but I have fatal issue when
cygrunsrv -I squidcache -d "Squid Web Proxy Cache" -p
/usr/bin/squid -a -N
Post by Sindhu Kurnia
cygrunsrv -S squidcache
The service has not been started.
Is there something wrong with my step? Anyone please kindly assist me...
Regards.
--
Sindhu Kurnia
--
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/
--
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/
Sindhu Kurnia
2002-02-15 04:36:04 UTC
Permalink
And this is the result

Administrator:~# cygrunsrv -I squidcache -p /usr/bin/squid.exe -a -D
Administrator:~# cygrunsrv -S squidcache
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
The service has not been started.

Any advice?

-----Original Message-----
From: Robert Collins [mailto:***@itdomain.com.au]
Sent: Friday, February 15, 2002 11:30 AM
To: Sindhu Kurnia; ***@cygwin.com
Subject: Re: Running Squid using cygrunsrv


You need to use -D to run squid as a service.

Rob
===
----- Original Message -----
From: "Sindhu Kurnia" <***@se.fujitsu.co.id>
To: <***@cygwin.com>
Sent: Friday, February 15, 2002 3:29 PM
Subject: Running Squid using cygrunsrv
Post by Sindhu Kurnia
Hi,
This is my first experience of running Squid under cygwin. I
successfully
Post by Sindhu Kurnia
run Squid by direct invoking from Bash shells, but I have fatal issue
when
Post by Sindhu Kurnia
cygrunsrv -I squidcache -d "Squid Web Proxy Cache" -p
/usr/bin/squid -a -N
Post by Sindhu Kurnia
cygrunsrv -S squidcache
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
The service has not been started.
Is there something wrong with my step? Anyone please kindly assist
me...
Post by Sindhu Kurnia
Regards.
--
Sindhu Kurnia
--
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/
--
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/
Robert Collins
2002-02-15 04:36:35 UTC
Permalink
Your squid syntax is invalid. -a requires a port number.

Also, I was wrong - -N as you had before is correct (I got confused,
been a while since I had to configure a squid install).

Rob



--
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/
Sindhu Kurnia
2002-02-15 04:45:22 UTC
Permalink
cygrunsrv -I squidcache -p /usr/bin/squid -a -N
should work then. I think the -a is the part of cygrunsrv parms not squid
parms. When I remove -a, then cygrunsrv complains unknown -N parameter.


-----Original Message-----
From: cygwin-***@cygwin.com [mailto:cygwin-***@cygwin.com]On Behalf
Of Robert Collins
Sent: Friday, February 15, 2002 11:37 AM
To: Sindhu Kurnia
Cc: ***@cygwin.com
Subject: Re: Running Squid using cygrunsrv


Your squid syntax is invalid. -a requires a port number.

Also, I was wrong - -N as you had before is correct (I got confused,
been a while since I had to configure a squid install).

Rob



--
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/


--
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/
Robert Collins
2002-02-15 04:46:39 UTC
Permalink
Then maybe pass -p "/usr/bin/squid -N" to cygrunsrv.

Rob
===
----- Original Message -----
From: "Sindhu Kurnia" <***@se.fujitsu.co.id>
To: "Robert Collins" <***@itdomain.com.au>
Cc: <***@cygwin.com>
Sent: Friday, February 15, 2002 3:45 PM
Subject: RE: Running Squid using cygrunsrv
Post by Sindhu Kurnia
cygrunsrv -I squidcache -p /usr/bin/squid -a -N
should work then. I think the -a is the part of cygrunsrv parms not squid
parms. When I remove -a, then cygrunsrv complains unknown -N
parameter.
Post by Sindhu Kurnia
-----Original Message-----
Of Robert Collins
Sent: Friday, February 15, 2002 11:37 AM
To: Sindhu Kurnia
Subject: Re: Running Squid using cygrunsrv
Your squid syntax is invalid. -a requires a port number.
Also, I was wrong - -N as you had before is correct (I got confused,
been a while since I had to configure a squid install).
Rob
--
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/
--
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/
Sindhu Kurnia
2002-02-15 05:05:15 UTC
Permalink
I've check the Win2K event viewer, it seems the problem came from file
permission when Squid tries to access /var/log/squidcache.log. This is the
attribute:

-rw-r--r-- 1 SYSTEM SYSTEM 3852 Feb 15 11:54 squidcache.log

any advice?

-----Original Message-----
From: cygwin-***@cygwin.com [mailto:cygwin-***@cygwin.com]On Behalf
Of Robert Collins
Sent: Friday, February 15, 2002 11:47 AM
To: Sindhu Kurnia
Cc: ***@cygwin.com
Subject: Re: Running Squid using cygrunsrv


Then maybe pass -p "/usr/bin/squid -N" to cygrunsrv.

Rob
===
----- Original Message -----
From: "Sindhu Kurnia" <***@se.fujitsu.co.id>
To: "Robert Collins" <***@itdomain.com.au>
Cc: <***@cygwin.com>
Sent: Friday, February 15, 2002 3:45 PM
Subject: RE: Running Squid using cygrunsrv
Post by Sindhu Kurnia
cygrunsrv -I squidcache -p /usr/bin/squid -a -N
should work then. I think the -a is the part of cygrunsrv parms not
squid
Post by Sindhu Kurnia
parms. When I remove -a, then cygrunsrv complains unknown -N
parameter.
Post by Sindhu Kurnia
-----Original Message-----
Behalf
Post by Sindhu Kurnia
Of Robert Collins
Sent: Friday, February 15, 2002 11:37 AM
To: Sindhu Kurnia
Subject: Re: Running Squid using cygrunsrv
Your squid syntax is invalid. -a requires a port number.
Also, I was wrong - -N as you had before is correct (I got confused,
been a while since I had to configure a squid install).
Rob
--
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/
--
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/


--
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/

Loading...