Re: Postgresql and Postmaster response
Sean <salphonse1@home.com> wrote:
I am using PostgreSQL version 7.0.2 with RedHat 6.1. When I start up the
postmaster at the prompt, I get the following response and the session hangs
and doesn't return to the prompt but I am able to use my databases and
PostgreSQL. Is this normal or correct? If not, what should I do to fix this
problem?
Your session hasn't hung. Basically you are running a server in the
foreground. You really want to run it in the background, so add an '&'
(ampersand) at the end of your line and the server will be sent to the
background. Ideally you want to nohup it too. From the man page:
USAGE
To start postmaster using default values, type:
% nohup postmaster >logfile 2>&1 &
This command will start up postmaster on the default port
(5432). This is the simplest and most common way to start
the postmaster.
By the way, since you are running on Linux, did you install postgreSQL
from a package ? If yes, there probably is a postgres file in /etc/init.d,
or /etc/rc something (not sure what it is on redhat, /etc/rc.d/init.d ??).
Check it, than the best way to sopt/start your server would be:
/etc/..../postgres stop
/etc/..../postgres start
Yves.
----
Yves Dorfsman dorfsmay@cuug.ab.ca
http://www.cuug.ab.ca/~dorfsmay
Import Notes
Reference msg id not found: fYFb5.8032$k5.100024@news1.rdc1.mb.home.com
On Fri, 14 Jul 2000, Yves Dorfsman wrote:
By the way, since you are running on Linux, did you install postgreSQL
from a package ? If yes, there probably is a postgres file in /etc/init.d,
or /etc/rc something (not sure what it is on redhat, /etc/rc.d/init.d ??).
/etc/rc.d/init.d/postgres
Maybe you should check out the text in server.log. That'll probably tell
you what's wrong.
Craig
Show quoted text
-----Original Message-----
From: AVU Makerere [mailto:avumuk@kla1.afsat.com]
Sent: Sunday, July 18, 1999 3:21 AM
To: pgsql-general@postgresql.org
Subject: [GENERAL] Postgresql and Postmaster responseHi,
I think I am having a similar problem. I used the advice
given but when
I
start the database server in the background usingnohup /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data \
</dev/null >>server.log 2>>1 &and then I ps -aux |grep post, I find that it is not
running. What did I
do
wrong?
Below are the details.Thanx
Ronald
[root@orion src]# nohup /usr/local/pgsql/bin/postmaster -D
/usr/local/pgsql/dat
a \</dev/null >>server.log 2>>1 &
[1] 1141
[root@orion src]# ps -aux |grep post
root 1145 0.0 1.8 1240 500 pts/0 S 10:460:00 grep post
[1]+ Exit 1 nohup
/usr/local/pgsql/bin/postmaster -D
/usr/loca
l/pgsql/data </dev/null >>server.log 2>>1
[root@orion src]# ps -aux |grep post
root 1147 2.0 1.8 1240 500 pts/0 S 10:460:00 grep post
[root@orion src]#
Import Notes
Resolved by subject fallback
nohup /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data \
</dev/null >>server.log 2>>1 &
Perhaps you should look into the file named "1" to which you've
added your stderr output.
Regards,
Mit freundlichem Gru�,
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
holger@klawitter.de http://www.klawitter.de/