Update /contrib README and add init.d from Ryan.
This commit is contained in:
parent
8255fc1716
commit
ed7910ef44
@ -47,6 +47,11 @@ fulltextindex -
|
|||||||
Full text indexing using triggers
|
Full text indexing using triggers
|
||||||
by Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>
|
by Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>
|
||||||
|
|
||||||
|
init.d -
|
||||||
|
Scripts for starting and stopping the PostgreSQL server on
|
||||||
|
a non-Linux systems
|
||||||
|
by Ryan Kirkpatrick <pgsql@rkirkpat.net>
|
||||||
|
|
||||||
intarray -
|
intarray -
|
||||||
Index support for arrays of int4, using GiST
|
Index support for arrays of int4, using GiST
|
||||||
by Teodor Sigaev <teodor@stack.net> and Oleg Bartunov
|
by Teodor Sigaev <teodor@stack.net> and Oleg Bartunov
|
||||||
@ -77,9 +82,17 @@ miscutil -
|
|||||||
PostgreSQL assert checking and various utility functions
|
PostgreSQL assert checking and various utility functions
|
||||||
by Massimo Dal Zotto <dz@cs.unitn.it>
|
by Massimo Dal Zotto <dz@cs.unitn.it>
|
||||||
|
|
||||||
|
mysql -
|
||||||
|
utility to convert MySQL schema dumps to SQL92 and PostgreSQL
|
||||||
|
by Thomas Lockhart <lockhart@alumni.caltech.edu>
|
||||||
|
|
||||||
noupdate -
|
noupdate -
|
||||||
trigger to prevent updates on single columns
|
trigger to prevent updates on single columns
|
||||||
|
|
||||||
|
oid2name -
|
||||||
|
maps numeric files to table names
|
||||||
|
by B Palmer <bpalmer@crimelabs.net>
|
||||||
|
|
||||||
pg_dumplo -
|
pg_dumplo -
|
||||||
Dump large objects
|
Dump large objects
|
||||||
by Karel Zak <zakkr@zf.jcu.cz>
|
by Karel Zak <zakkr@zf.jcu.cz>
|
||||||
@ -92,6 +105,14 @@ pgcrypto -
|
|||||||
Cryptographic hash functions
|
Cryptographic hash functions
|
||||||
by Marko Kreen <marko@l-t.ee>
|
by Marko Kreen <marko@l-t.ee>
|
||||||
|
|
||||||
|
retep -
|
||||||
|
tools to build retep tools packages
|
||||||
|
by Peter T Mount <peter@retep.org.uk>
|
||||||
|
|
||||||
|
rserv -
|
||||||
|
replication server
|
||||||
|
by Vadim B. Mikheev <vadim4o@email.com>
|
||||||
|
|
||||||
seg -
|
seg -
|
||||||
Confidence-interval datatype (GiST indexing example)
|
Confidence-interval datatype (GiST indexing example)
|
||||||
by Gene Selkov, Jr. <selkovjr@mcs.anl.gov>
|
by Gene Selkov, Jr. <selkovjr@mcs.anl.gov>
|
||||||
|
8
contrib/init.d/README
Normal file
8
contrib/init.d/README
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
| Ryan Kirkpatrick | Boulder, Colorado | http://www.rkirkpat.net/ |
|
||||||
|
---------------------------------------------------------------------------
|
44
contrib/init.d/postgresql
Normal file
44
contrib/init.d/postgresql
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# PostgreSQL Start the pgsql RDMBS.
|
||||||
|
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
DAEMON=/home/postgres/bin/pg_ctl
|
||||||
|
NAME=postmaster
|
||||||
|
FILE=postgresql
|
||||||
|
ARGS="-w -D /home/postgres/data -o -i -o -F"
|
||||||
|
USER="postgres:postgres"
|
||||||
|
LOG="/home/postgres/server.log"
|
||||||
|
DESC="PostgreSQL RDBMS"
|
||||||
|
|
||||||
|
test -f $DAEMON || exit 0
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
echo -n "Starting $DESC: "
|
||||||
|
su - postgres sh -c "$DAEMON start $ARGS >& $LOG"
|
||||||
|
echo "$NAME."
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
echo -n "Stopping $DESC: "
|
||||||
|
su - postgres sh -c "$DAEMON stop >& /dev/null"
|
||||||
|
echo "$NAME."
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
/etc/init.d/$FILE stop
|
||||||
|
sleep 5
|
||||||
|
/etc/init.d/$FILE start
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
su - postgres $DAEMON status
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
N=/etc/init.d/$FILE
|
||||||
|
echo "Usage: $N {start|stop|restart|status}" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user