diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2002-12-31 18:41:47 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2002-12-31 18:41:47 +0000 |
commit | 8586c5507c44f103d70a3a32ce8527185b07e056 (patch) | |
tree | 82e8c322322b8d725e161bcc77f3b89c951da300 /dev-db/postgresql/files | |
parent | New version. (diff) | |
download | gentoo-2-8586c5507c44f103d70a3a32ce8527185b07e056.tar.gz gentoo-2-8586c5507c44f103d70a3a32ce8527185b07e056.tar.bz2 gentoo-2-8586c5507c44f103d70a3a32ce8527185b07e056.zip |
version bump. masked for testing
Diffstat (limited to 'dev-db/postgresql/files')
-rw-r--r-- | dev-db/postgresql/files/7.3.1/postgresql | 27 | ||||
-rw-r--r-- | dev-db/postgresql/files/digest-postgresql-7.3.1 | 1 | ||||
-rwxr-xr-x | dev-db/postgresql/files/postgres | 3 |
3 files changed, 29 insertions, 2 deletions
diff --git a/dev-db/postgresql/files/7.3.1/postgresql b/dev-db/postgresql/files/7.3.1/postgresql new file mode 100644 index 000000000000..e40f2fc37485 --- /dev/null +++ b/dev-db/postgresql/files/7.3.1/postgresql @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# /space/gentoo/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.rc6,v 1.1 2002/01/06 00:53:24 woodchip Exp + +depend() { + need net +} + +start() { + ebegin "Starting postgres" + su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -l '$PGLOG' -o '$PGOPTS'" + eend $? +} + +stop () { + ebegin "Stopping postgres" + su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast" + eend $? +} + +svc_restart () { + ebegin "Restarting postgres" + su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -l '$PGLOG' -o '$PGOPTS'" + eend $? +} + diff --git a/dev-db/postgresql/files/digest-postgresql-7.3.1 b/dev-db/postgresql/files/digest-postgresql-7.3.1 new file mode 100644 index 000000000000..9c133a42d2ab --- /dev/null +++ b/dev-db/postgresql/files/digest-postgresql-7.3.1 @@ -0,0 +1 @@ +MD5 924b21c3114f595834e2456277f1bffb postgresql-7.3.1.tar.gz 11171551 diff --git a/dev-db/postgresql/files/postgres b/dev-db/postgresql/files/postgres index f8f047c19f12..9968708984de 100755 --- a/dev-db/postgresql/files/postgres +++ b/dev-db/postgresql/files/postgres @@ -25,7 +25,7 @@ start() { einfo "Starting ${SERVICE}.." if [ "${USE_SYSLOG}" = "yes" ] then - su - ${PGUSER} -c "${EXE} ${PGOPTS} -p ${PGPORT} 2>&1" | logger -p ${FACILITY}.notice 1>&2 & + sudo -u ${PGUSER} "${EXE} ${PGOPTS} -p ${PGPORT} 2>&1" | logger -p ${FACILITY}.notice 1>&2 & fi eend $? "Error starting ${SERVICE}." } @@ -43,4 +43,3 @@ restart() { doservice ${@} - |