Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script.... - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....
Date
Msg-id Pine.LNX.4.30.0102041612460.864-100000@peter.localdomain
Whole thread Raw
Responses Re: Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....
Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....
List pgsql-hackers
Ryan Kirkpatrick writes:

>     postgresql -> This is a Linux distribution independent (or so I
> hope) init.d/rc.d script that makes use of pg_ctl. There is currently a
> few in ./contrib/linux of the pgsql source tree, but they are RedHat
> specific. This one is simple and self contained. Might be worth adding to
> the other scripts.

I don't see how this can be more independent if it uses

DAEMON=/home/postgres/bin/pg_ctl

and

LOG="/usr/local/pgsql/server.log"

Nor is

su - postgres sh -c "$DAEMON stop >& /dev/null"

an appropriate way to stop the server in a system shutdown situation.


IMHO, rather than accumulating a bunch of versions that somebody liked
better than the existing ones, why not provide actual scripts from actual
distributions?  Generic scripts will just lead to generic problems.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: m w
Date:
Subject: Re: Like vs '=' bug with indexing
Next
From: Kovacs Baldvin
Date:
Subject: Message of MOVE