X-Spam-Check-By: sourceware.org Message-ID: <195b3f1f0702041801i5190e94coc0874dfa6f0d3c@mail.gmail.com> Date: Mon, 5 Feb 2007 11:01:57 +0900 From: "Wynfield Henman" To: cygwin AT cygwin DOT com Subject: Re: cygrunsrv problem In-Reply-To: <45C2B96D.7E940183@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <195b3f1f0702011826t1d25b864h2ab884eb9f92b341 AT mail DOT gmail DOT com> <45C2B96D DOT 7E940183 AT dessent DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Brian, thanks for the informative explanation about cygrunsrv and demon processes. On 2/2/07, Brian Dessent wrote: > Wynfield Henman wrote: > > > The "cygrunsrv -Q " definitely is buggy to me. > > When I started up my system "privoxy" is indeed up and running as it should be. > > > > But, when I do a cygrunsrv -Q it shows that the service is stopped, > > yet it isn't. > > There's no bug here, just some misunderstanding on your part. > > Privoxy detaches and demonizes on its own when you start it. Cygrunsrv > is meant to be used with programs that do not detach themselves. That > is why you must launch things such as "cron -D" and so on to tell it not > to demonize itself. If the launched program demonizes itself then > cygrunsrv has no way to monitor when it has stopped, and it thinks the > binary has terminated immediately after starting. Thus cygrunsrv itself > terminates and tells the system that the service has stopped, even > though the spawned privoxy binary might still be running, but the > service itself (which is cygrunsrv) is not actually running. > > You can use the windows built-in "sc" command to verify that the service > isn't actually running, type "sc query privoxy" and it should agree with > whatever cygrunsrv -Q says. > > If you want this to work you need to specify whatever option privoxy > uses to tell it not to detach. > > Brian > > -- > 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/ > > -- 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/