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/