Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ed7910e

Browse files
committed
Update /contrib README and add init.d from Ryan.
1 parent 8255fc1 commit ed7910e

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

contrib/README

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ fulltextindex -
4747
Full text indexing using triggers
4848
by Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>
4949

50+
init.d -
51+
Scripts for starting and stopping the PostgreSQL server on
52+
a non-Linux systems
53+
by Ryan Kirkpatrick <pgsql@rkirkpat.net>
54+
5055
intarray -
5156
Index support for arrays of int4, using GiST
5257
by Teodor Sigaev <teodor@stack.net> and Oleg Bartunov
@@ -77,9 +82,17 @@ miscutil -
7782
PostgreSQL assert checking and various utility functions
7883
by Massimo Dal Zotto <dz@cs.unitn.it>
7984

85+
mysql -
86+
utility to convert MySQL schema dumps to SQL92 and PostgreSQL
87+
by Thomas Lockhart <lockhart@alumni.caltech.edu>
88+
8089
noupdate -
8190
trigger to prevent updates on single columns
8291

92+
oid2name -
93+
maps numeric files to table names
94+
by B Palmer <bpalmer@crimelabs.net>
95+
8396
pg_dumplo -
8497
Dump large objects
8598
by Karel Zak <zakkr@zf.jcu.cz>
@@ -92,6 +105,14 @@ pgcrypto -
92105
Cryptographic hash functions
93106
by Marko Kreen <marko@l-t.ee>
94107

108+
retep -
109+
tools to build retep tools packages
110+
by Peter T Mount <peter@retep.org.uk>
111+
112+
rserv -
113+
replication server
114+
by Vadim B. Mikheev <vadim4o@email.com>
115+
95116
seg -
96117
Confidence-interval datatype (GiST indexing example)
97118
by Gene Selkov, Jr. <selkovjr@mcs.anl.gov>

contrib/init.d/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
postgresql -> This is a Linux distribution independent (or so I
2+
hope) init.d/rc.d script that makes use of pg_ctl. There is currently a
3+
few in ./contrib/linux of the pgsql source tree, but they are RedHat
4+
specific. This one is simple and self contained.
5+
6+
---------------------------------------------------------------------------
7+
| Ryan Kirkpatrick | Boulder, Colorado | http://www.rkirkpat.net/ |
8+
---------------------------------------------------------------------------

contrib/init.d/postgresql

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#! /bin/sh
2+
#
3+
# PostgreSQL Start the pgsql RDMBS.
4+
5+
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
6+
DAEMON=/home/postgres/bin/pg_ctl
7+
NAME=postmaster
8+
FILE=postgresql
9+
ARGS="-w -D /home/postgres/data -o -i -o -F"
10+
USER="postgres:postgres"
11+
LOG="/home/postgres/server.log"
12+
DESC="PostgreSQL RDBMS"
13+
14+
test -f $DAEMON || exit 0
15+
16+
set -e
17+
18+
case "$1" in
19+
start)
20+
echo -n "Starting $DESC: "
21+
su - postgres sh -c "$DAEMON start $ARGS >& $LOG"
22+
echo "$NAME."
23+
;;
24+
stop)
25+
echo -n "Stopping $DESC: "
26+
su - postgres sh -c "$DAEMON stop >& /dev/null"
27+
echo "$NAME."
28+
;;
29+
restart)
30+
/etc/init.d/$FILE stop
31+
sleep 5
32+
/etc/init.d/$FILE start
33+
;;
34+
status)
35+
su - postgres $DAEMON status
36+
;;
37+
*)
38+
N=/etc/init.d/$FILE
39+
echo "Usage: $N {start|stop|restart|status}" >&2
40+
exit 1
41+
;;
42+
esac
43+
44+
exit 0

0 commit comments

Comments
 (0)