472,958 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Problem stopping PostgreSQL in Cygwin

JP
Just installed Cygwin on my Win 2K Pro workstation today.

I had the installer install PostgreSQL, and it's working just fine. I can
start it either with
postmaster -D /blah/blah/blah &
or with
pg_ctl -D /blah/blah/blah start

however, it will not stop for me (pg_ctl -D /blah/blah/blah stop). It gets
about half way through the second line of "dots" and then says "failed".
"pg_ctl: postmaster does not shut down" or words to that effect.

Not sure if this is anything, but in my /Data directory, postmaster.pid
is -rw-------. It has my ID as the owner. Permissions? If so, why?
Running this thing "straight out of the box".

Also, on an unrelated topic (and pardon my ignorance), what is the correct
procedure for shutting down Cygwin? I assume clicking the 'X' is probably
not best practise, yes?

Thanks for any and all help.

JP

Jul 19 '05 #1
1 2423
These are two distinct issues, JP.

First of all, POSTGRES depends on CYGIPC to work properly. Prior to
activating your server, you should call "/usr/bin/ipc-daemon2 &" and
leave it running. This is an oddity that should cease to exist in the
future, but, for now...

Shutting down the server through pg_ctl does not work due to a
difference in the shells supplied with the Cygwin distribution. In
fact, your kill command doesn't work in the script and works on the
prompt because you're using two different shell interpreters. Edit
pg_ctl and change the first line to #!/bin/bash (rather than #!
/bin/sh) and everything should work properly.

'hope this can help.

"JP" <x@y.com> wrote in message news:<2MG9b.38049$S_.5002@fed1read01>...
This is going to seem strange .....

The interperter does not seem to be recognizing the kill in pg_ctl
correctly.

When it hits the kill, it displays the usage stuff. If I echo out the kill
command before it executes, it looks perfectly normal. If I execute what is
echoed out, it shuts down Postgres just fine.

Why would pg_ctl create a perfectly formed kill statement and the
interpreter think it is not?

JP

"JP" <x@y.com> wrote in message news:fVy9b.38010$S_.28807@fed1read01...
Just installed Cygwin on my Win 2K Pro workstation today.

I had the installer install PostgreSQL, and it's working just fine. I can
start it either with
postmaster -D /blah/blah/blah &
or with
pg_ctl -D /blah/blah/blah start

however, it will not stop for me (pg_ctl -D /blah/blah/blah stop). It

gets
about half way through the second line of "dots" and then says "failed".
"pg_ctl: postmaster does not shut down" or words to that effect.

Not sure if this is anything, but in my /Data directory, postmaster.pid
is -rw-------. It has my ID as the owner. Permissions? If so, why?
Running this thing "straight out of the box".

Also, on an unrelated topic (and pardon my ignorance), what is the correct
procedure for shutting down Cygwin? I assume clicking the 'X' is probably
not best practise, yes?

Thanks for any and all help.

JP

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill Grigg | last post by:
Gentlemen, I am hoping to be able to use GForge on my windows PC. To that end I have installed: 1. cygwin 2. reinstalled cygwin and selected cygipc, postgreSQL and a few other things 3. PHP...
0
by: slash | last post by:
Hi I have install bin pack of PostgreSQL 7.3.1 on Windows 2000 Server, i try to run it as LocalSystem User, but dosen't work I download libpq.dll and put it on C:\Winnt\System32 but this don't...
1
by: Muhyiddin A.M Hayat | last post by:
How to install Cygwin PostgreSQL as NT Services on Windows 2000. i have do all procedure in postgresql-7.3.4.README file but i found error $ net start postmaster The postmaster service is...
1
by: NK | last post by:
Trying to install Postgresql 7.3.4 using the Cygwin(the last version) , I followed all the instructions. After typing the "" ./configure "" command, I typed "" make "" (i have installed the GNU...
13
by: Zlatko Matić | last post by:
Is it possible to use Access as front-end for POstgreSQL and how ? What about Access Projects (.adp) and PostgreSQL ?
0
by: Melanie Bergeron | last post by:
Hi all! I have a big problem installing postmaster as a service under Windows XP with cygwin. I already installed postgresql on 2 machines without problems but this machine really seem to don't...
4
by: John Small | last post by:
I want to use PostgreSQL on a project that will have to run on both Linux and Windows. But using cygwin is not a viable option. Does the dbExpert version of PostgreSQL run natively under...
0
by: Jakub | last post by:
Hi, I'm running PostgreSQL 7.4 on Cygwin(Win XP Pro). Everything works perfectly, but I have to replace the current version with a 7.3 version for development and testing reasons. I've tried to do...
15
by: Együd Csaba | last post by:
Hi All, I've a problem with the perfprmance of the production environment. I've two db servers. One on my laptop computer (2Ghz, 1GB, WinXP, Cygwin, Postgres 7.3.4) and one on a production server...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.