From: | Igor Pechtchanski <pechtcha(at)cs(dot)nyu(dot)edu> |
---|---|
To: | John Pagakis <john(at)pagakis(dot)com> |
Cc: | pgsql-cygwin(at)postgresql(dot)org, cygwin(at)cygwin(dot)com |
Subject: | Re: Problem with stopping postmaster with pg_ctl |
Date: | 2003-09-16 20:47:23 |
Message-ID: | Pine.GSO.4.56.0309161642180.12411@slinky.cs.nyu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Claudio Natoli | 2003-09-17 00:20:20 | Re: initdb/ipc-daemon error |
Previous Message | Jason Tishler | 2003-09-16 20:35:25 | Re: Getting problem when I am using pg_dump |