delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/16/17:43:22

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
Reply-To: <john AT pagakis DOT com>
From: "John Pagakis" <john AT pagakis DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Problem with stopping postmaster with pg_ctl
Date: Tue, 16 Sep 2003 14:44:50 -0700
Message-ID: <KKEBKDPPLALEFHBEAOCCKEMBDCAA.john@pagakis.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <Pine.GSO.4.56.0309161642180.12411@slinky.cs.nyu.edu>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

Igor -
You may be on to something ....

If I say "which kill" at the command line it tells me /usr/bin/kill; if I
echo it out of the script I get the same thing.  If I type
"/usr/bin/kill -15 9999" at the command line I get Usage.  If I type
"kill -15 9999" it works just fine.

__________________________________________________________________
John Pagakis
Email: john AT pagakis DOT com

"If enlightenment is not where you are standing,
 where will you look?"
        -- Zen saying

This signature generated by
     ... and I Quote!!(tm) Copyright (c) 1999 SpaZmodic Frog Software, Inc.
                                              www.spazmodicfrog.com


-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu]
Sent: Tuesday, September 16, 2003 1:47 PM
To: John Pagakis
Cc: pgsql-cygwin AT postgresql DOT org; cygwin AT cygwin DOT com
Subject: Re: Problem with stopping postmaster with pg_ctl


On Tue, 16 Sep 2003, John Pagakis wrote:

> I'm trying to get Postgres working under Cygwin.  The good news is, it
> mostly is.  The bad news is, I can't shut it down with pg_ctl.
>
> I loaded the full Cygwin installation on my Win2K Pro machine, and later
on
> my XP Pro box.  Both behave the same way.
>
> When I run pg_ctl stop, it motors for the duration of the wait period and
> then says the postmaster does not shut down.
>
> Upon further review ......
>
> It looks like pg_ctl looks through the process list for the Postgres
process
> and then tries to kill it.  You can specify the shutdown as smart (which
> translates to kill -TERM), fast (kill -INT) or immediate (kill -QUIT).
>
> When the script hits the kill, I get Usage info on the screen!!  So, the
> interpreter is not seeing this as a valid command line string for kill.  I
> have echoed the command being generated out and it looks fine.  I can take
> that same command and execute it: it shuts Postgres down.
>
> Why would the interpreter rejecting the command line for kill when it
> appears to be well formed?
>
> Any help would be greatly appreciated.

You probably have another "kill" in the path before "/bin/kill".  Try
"bash -c 'exec -l sh'", and from there "which kill".

Had you attached the output of "cygcheck -svr", as requested in the
problem reporting guidelines at <http://cygwin.com/problems.html>, it
would have provided some information for a more intelligent guess.
	Igor
--
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019