Changing from default configuration options in 7.1?

From: Steve Wampler <swampler(at)noao(dot)edu>
To: postgres-general <pgsql-general(at)postgresql(dot)org>
Subject: Changing from default configuration options in 7.1?
Date: 2001-04-19 15:53:58
Message-ID: 3ADF0A16.E9841383@noao.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I just upgraded from 7.0.3 to 7.1 (using the RH rpms) with no
major problems. Nice!

However, I'm getting some strange behaviour from the init
script (/etc/rc.d/init.d/postgresql). In particular, a
restart when the database is running fails because the
"sleep 2" in stop() is no longer long enough (on a dual-cpu
PIII/650 machine!). So "pidof postmaster" returns a non-null
value and *that* results in a syntax error:

Checking postgresql installation: [ OK ]
./postgresql: [: 18209: unary operator expected

(I think the test should become something like "if [ -n "$pid" ];..."
instead of just "if [ $pid ]", which at least prevents the
syntax error...)

Of course, fixing the syntax error isn't the main problem, which
is that the shutdown of the old postmaster(s) hasn't completed yet,
resulting in a "false positive" from the pidof operation.

I bumped the "sleep 2" up to "sleep 5" and the problem went away.
Surely there's a better fix?

--
Steve Wampler- SOLIS Project, National Solar Observatory
swampler(at)noao(dot)edu

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-04-19 15:55:28 Re: syntax error 44 : ->
Previous Message Peter Eisentraut 2001-04-19 15:47:58 Re: < Int4 - limit >