summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2004-02-27 05:44:48 +0000
committerMasatomo Nakano <nakano@gentoo.org>2004-02-27 05:44:48 +0000
commitd4ef6d079825c427d1f8077bf41042772e37bfa7 (patch)
tree13a038cdd4c835801aad7be215443e59d8d322f0
parentmetadata'd to text-markup, then gnome (Manifest recommit) (diff)
downloadgentoo-2-d4ef6d079825c427d1f8077bf41042772e37bfa7.tar.gz
gentoo-2-d4ef6d079825c427d1f8077bf41042772e37bfa7.tar.bz2
gentoo-2-d4ef6d079825c427d1f8077bf41042772e37bfa7.zip
Added 'reload' action to init scripts.
-rw-r--r--dev-db/postgresql/ChangeLog7
-rw-r--r--dev-db/postgresql/files/postgresql.init-7.3.418
-rw-r--r--dev-db/postgresql/files/postgresql.init-7.3.518
-rw-r--r--dev-db/postgresql/files/postgresql.init-7.4.116
4 files changed, 44 insertions, 15 deletions
diff --git a/dev-db/postgresql/ChangeLog b/dev-db/postgresql/ChangeLog
index 2c3013543ee5..e945cfa638e8 100644
--- a/dev-db/postgresql/ChangeLog
+++ b/dev-db/postgresql/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/postgresql
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.85 2004/02/23 19:43:06 nakano Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.86 2004/02/27 05:44:47 nakano Exp $
+
+ 27 Feb 2004; Masatomo Nakano <nakano@gentoo.org>
+ files/postgresql.init-7.3.4, files/postgresql.init-7.3.5,
+ files/postgresql.init-7.4.1:
+ Added 'reload' action to /etc/init.d/postgresql.
23 Feb 2004; Masatomo Nakano <nakano@gentoo.org> postgresql-7.3.5-r1.ebuild,
postgresql-7.3.5-r2.ebuild, postgresql-7.3.5.ebuild,
diff --git a/dev-db/postgresql/files/postgresql.init-7.3.4 b/dev-db/postgresql/files/postgresql.init-7.3.4
index 341d06359309..494cb73efaf0 100644
--- a/dev-db/postgresql/files/postgresql.init-7.3.4
+++ b/dev-db/postgresql/files/postgresql.init-7.3.4
@@ -1,10 +1,12 @@
#!/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.3.4,v 1.2 2004/02/13 19:26:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-7.3.4,v 1.3 2004/02/27 05:44:48 nakano Exp $
+
+opts="${opts} reload"
depend() {
- need net
+ use net
}
checkconfig() {
@@ -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 $?
+}
diff --git a/dev-db/postgresql/files/postgresql.init-7.3.5 b/dev-db/postgresql/files/postgresql.init-7.3.5
index 4979914a691d..3e0836a2d105 100644
--- a/dev-db/postgresql/files/postgresql.init-7.3.5
+++ b/dev-db/postgresql/files/postgresql.init-7.3.5
@@ -1,10 +1,12 @@
#!/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.3.5,v 1.2 2004/02/13 19:26:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-7.3.5,v 1.3 2004/02/27 05:44:48 nakano Exp $
+
+opts="${opts} reload"
depend() {
- need net
+ use net
}
checkconfig() {
@@ -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 $?
+}
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 $?
+}