summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/postgresql/files/postgresql.init-7.4.1')
-rw-r--r--dev-db/postgresql/files/postgresql.init-7.4.116
1 files changed, 12 insertions, 4 deletions
diff --git a/dev-db/postgresql/files/postgresql.init-7.4.1 b/dev-db/postgresql/files/postgresql.init-7.4.1
index 74ce7c9fe34a..1ef2eb8b042c 100644
--- a/dev-db/postgresql/files/postgresql.init-7.4.1
+++ b/dev-db/postgresql/files/postgresql.init-7.4.1
@@ -1,7 +1,9 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-7.4.1,v 1.2 2004/02/13 19:26:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-7.4.1,v 1.3 2004/02/27 05:44:48 nakano Exp $
+
+opts="${opts} reload"
depend() {
use net
@@ -18,7 +20,7 @@ checkconfig() {
start() {
checkconfig || return 1
- ebegin "Starting postgres"
+ ebegin "Starting PostgreSQL"
if [ -f $PGDATA/postmaster.pid ]; then
rm $PGDATA/postmaster.pid
fi
@@ -43,13 +45,19 @@ start() {
}
stop() {
- ebegin "Stopping postgres"
+ ebegin "Stopping PostgreSQL"
su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast"
eend $?
}
svc_restart() {
- ebegin "Restarting postgres"
+ ebegin "Restarting PostgreSQL"
su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -l '$PGLOG' -o '$PGOPTS'"
eend $?
}
+
+reload() {
+ ebegin "Reloading PostgreSQL configuration"
+ su - $PGUSER -c "/usr/bin/pg_ctl reload -D '$PGDATA' -s"
+ eend $?
+}