Startup Script

Поиск
Список
Период
Сортировка
Искать

Startup Script

От:
"Duncan Kinder" <dckinder@mountain.net>
Дата:
I have been told on the Novice list that in order to start Postgres for an
Internet connection, it needs to have the -i flag set.

However, following the documentation, for RedHat automatic startups, I have
inserted the following language in my /etc/inittab file:

pg:2345:respawn:/bin/su - Postgres -c
"/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data >>
/usr/local/pgsql/server.log 2>&1 

Re: [GENERAL] Startup Script

От:
Chairudin Sentosa Harjo <chai@prima.net.id>
Дата:
Dear all,

My system is SuSE 6.2, postgresql 6.5.2 and pentium III 500.

I have a problem with postmaster respawning too fast.

I followed the installation guide of postgresql 6.5.2 in file INSTALL.
On section 21, "Run postmaster in the background from your ...",
I followed the last method.


* In RedHat Linux edit file /etc/inittab to add the floowing as a single
line:
pg:2345:respawn:/bin/su - postgres -c "/usr/local/pgsql/bin/postmaster"
-D /usr/local/pgsql/data >> /usr/local/pgsql/server.log 2>&1 <
/dev/null"



I see a lot of this messages on my /var/log/messages:

Oct 9 00:01:16 prosolv init: Id "pg" respawning too fast: disabled for 5
minutes
Oct 9 00:06:18 prosolv init: Id "pg" respawning too fast: disabled for 5
minutes
Oct 9 00:11:20 prosolv init: Id "pg" respawning too fast: disabled for 5
minutes
Oct 9 00:16:22 prosolv init: Id "pg" respawning too fast: disabled for 5
minutes

I have about 1271 messages like this until today, 13 Oct 1999.
It seems to happen every 5 minutes.
What is happening?
Could someone tell me what have I done wrong?

Regards,
Chairudin Sentosa

Re: [GENERAL] Startup Script

От:
Herouth Maoz <herouth@oumail.openu.ac.il>
Дата:
At 20:13 +0200 on 12/10/1999, Duncan Kinder wrote:


> pg:2345:respawn:/bin/su - Postgres -c
> "/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data >>
> /usr/local/pgsql/server.log 2>&1 
> I would like to know how to edit this language so that Postgres will
> automatically start with the -i flag.
>
> This would enable me to work with the very interesing looking kpsql add-on,
> which will not work unless I can set this -i flag.

Just add "-i" before the "-D" in the postmaster command.

pg:2345:respawn:/bin/su - Postgres -c
"/usr/local/pgsql/bin/postmaster -i -D/usr/local/pgsql/data >>
/usr/local/pgsql/server.log 2>&1 

Re: [GENERAL] Startup Script

От:
Dan Parker <danp@town.ipswich.ma.us>
Дата:

On Tue, 12 Oct 1999, Duncan Kinder wrote:

> 
> I have been told on the Novice list that in order to start Postgres for an
> Internet connection, it needs to have the -i flag set.
> 
> However, following the documentation, for RedHat automatic startups, I have
> inserted the following language in my /etc/inittab file:
> 
> pg:2345:respawn:/bin/su - Postgres -c
> "/usr/local/pgsql/bin/postmaster -D/usr/local/pgsql/data >>
> /usr/local/pgsql/server.log 2>&1  
> I would like to know how to edit this language so that Postgres will
> automatically start with the -i flag.

Duncan,

Change the line to:

pg:2345:respawn:/bin/su - Postgres -c
"/usr/local/pgsql/bin/postmaster -i -D/usr/local/pgsql/data >>
/usr/local/pgsql/server.log 2>&1 
FAQ