Re: starting server at boot

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Adam Lang" <aalang(at)rutgersinsurance(dot)com>
Cc: "PGSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: starting server at boot
Date: 2000-09-01 21:45:58
Message-ID: 29201.967844758@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Adam Lang" <aalang(at)rutgersinsurance(dot)com> writes:
> nohup su -c 'postmaster -i -D /usr/local/pgsql/data > server.log 2>&1'
> postgres &

nohup su seems a little odd; I'd expect the nohup command to affect the
su process itself, but I'm not at all sure that su would allow the
nonstandard signal-handling state to propagate through to the command
it executes.

Try
su -c 'nohup postmaster ... 2>&1 &' postgres
instead.

This should also eliminate nohup's desire to make a useless output
file...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-09-01 21:57:14 Re: install 7.0.2 host
Previous Message Dave Smith 2000-09-01 19:12:52 Re: Increasing system speed by using -F option