public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem with stopping postmaster with pg_ctl
@ 2003-09-16 20:18 John Pagakis
  2003-09-16 20:53 ` Igor Pechtchanski
  0 siblings, 1 reply; 11+ messages in thread
From: John Pagakis @ 2003-09-16 20:18 UTC (permalink / raw)
  To: pgsql-cygwin, cygwin

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.

__________________________________________________________________
John Pagakis
Email: john@pagakis.com

"Ideas are more powerful than guns.  We would
 not let our enemies have guns, why should we
 let them have ideas?"
        -- Josef Stalin

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


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-09-17 17:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16 20:18 Problem with stopping postmaster with pg_ctl John Pagakis
2003-09-16 20:53 ` Igor Pechtchanski
2003-09-16 21:12   ` John Pagakis
2003-09-16 21:53   ` John Pagakis
2003-09-16 22:00     ` Christopher Faylor
2003-09-17 15:28   ` John Pagakis
2003-09-17 15:50   ` John Pagakis
2003-09-17 16:18     ` Igor Pechtchanski
2003-09-17 16:40       ` John Pagakis
2003-09-17 17:09         ` Igor Pechtchanski
2003-09-17 17:43           ` John Pagakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).