473,490 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2442
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
5310
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
2146
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
2334
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
1535
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
7249
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
1363
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
716
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
1077
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
1566
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
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.