Re: any body using Solaris8 with postgresql 7.3.3 - Mailing list pgsql-general

From Weiping He
Subject Re: any body using Solaris8 with postgresql 7.3.3
Date
Msg-id 3F0A9336.7040909@zhengmai.com.cn
Whole thread Raw
In response to Re: any body using Solaris8 with postgresql 7.3.3  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:

>Hm.  My first thought was that you needed a </dev/null in there too,
>but it looks like pg_ctl does that for you.  The other likely
>possibility is that you need a "nohup" in front of all of this.
>
>We should check the theory though.  After you start the postmaster
>using the above command, if you type control-C (or whatever your
>favorite interrupt character is) on the same terminal, does the
>postmaster shut down?
>
>            regards, tom lane
>
>
>
report back:

yes, Tom is right, it's because the control-C on the consol cause the
pmdie 2,
simple test without redirect the log would show the effect of control-C
clearly。
And I have to:

nohup pg_ctl start >logfile 2>&1&
exit
and relogin to system, then the server would be very stable.
I think put the start script into system startup script would be no problem.
But now the question is, why Solaris shows the difference? and how can I
circumvent it?

Thanks

Laser


pgsql-general by date:

Previous
From: Paul Thomas
Date:
Subject: Re: Benchmarking
Next
From: Richard Huxton
Date:
Subject: Re: SQL Functions and plan time