Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27251 Details for
Bug 44468
Init-scripts for PostgreSQL that use syslog
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
syslog-enabled postgresql.init-7.4.2
postgresql.init-7.4.2 (text/plain), 1.33 KB, created by
Arthur Ward
on 2004-03-12 09:58:46 UTC
(
hide
)
Description:
syslog-enabled postgresql.init-7.4.2
Filename:
MIME Type:
Creator:
Arthur Ward
Created:
2004-03-12 09:58:46 UTC
Size:
1.33 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/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() { > need logger > use net >} > >checkconfig() { > if [ ! -d $PGDATA ]; then > eerror "directory not found: $PGDATA" > eerror "You should create PGDATA directory first." > return 1 > fi >} > >start() { > checkconfig || return 1 > > ebegin "Starting PostgreSQL" > if [ -f $PGDATA/postmaster.pid ]; then > rm $PGDATA/postmaster.pid > fi > su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA' -s -o '$PGOPTS' 2>&1 | logger -p local0.info -t postgres &" > > while : > do > cnt=$(($cnt + 1)) > if [ -f "$PGDATA/postmaster.pid" ]; then > ret=0 > break > fi > > if [ $cnt -eq 30 ]; then > eerror "Please see log file: $PGLOG" > ret=1 > break > fi > sleep 1 > done > eend $ret >} > >stop() { > ebegin "Stopping PostgreSQL" > su - $PGUSER -c "/usr/bin/pg_ctl stop -D '$PGDATA' -s -m fast" > eend $? >} > >svc_restart() { > ebegin "Restarting PostgreSQL" > su - $PGUSER -c "/usr/bin/pg_ctl restart -D '$PGDATA' -s -m fast -o '$PGOPTS' 2>&1 | logger -p local0.info -t postgres &" > eend $? >} > >reload() { > ebegin "Reloading PostgreSQL configuration" > su - $PGUSER -c "/usr/bin/pg_ctl reload -D '$PGDATA' -s" > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44468
: 27251 |
27252