Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 362106 Details for
Bug 489632
dev-db/postgresql-server initscript reference /usr/lib instead of /usr/LIBDIR
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for init scripts and systemd service unit
postgresql-initscripts.patch (text/plain), 2.20 KB, created by
Mike Gilbert
on 2013-10-28 03:46:22 UTC
(
hide
)
Description:
Patch for init scripts and systemd service unit
Filename:
MIME Type:
Creator:
Mike Gilbert
Created:
2013-10-28 03:46:22 UTC
Size:
2.20 KB
patch
obsolete
>From 1df0c1913e44666192bdde8285c3e7e09ebff84b Mon Sep 17 00:00:00 2001 >From: Mike Gilbert <floppym@gentoo.org> >Date: Sun, 27 Oct 2013 23:35:29 -0400 >Subject: [PATCH] Replace /usr/lib with /usr/@LIBDIR@ > >--- > postgresql.init | 4 ++-- > postgresql.service | 6 +++--- > 2 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/postgresql.init b/postgresql.init >index 6e0e965..413558e 100755 >--- a/postgresql.init >+++ b/postgresql.init >@@ -89,7 +89,7 @@ start() { > --env "PGPORT=${configured_port}" \ > ${extraenv} \ > --pidfile ${DATA_DIR%/}/postmaster.pid \ >- --exec /usr/lib/postgresql-@SLOT@/bin/pg_ctl \ >+ --exec /usr/@LIBDIR@/postgresql-@SLOT@/bin/pg_ctl \ > -- start -s -w -t ${START_TIMEOUT} -l ${DATA_DIR%/}/postmaster.log \ > -D ${PGDATA} -o "--data-directory=${DATA_DIR} ${PGOPTS}" > local retval=$? >@@ -124,7 +124,7 @@ stop() { > > # Loops through nice, rude, and force quit in one go. > start-stop-daemon --stop \ >- --exec /usr/lib/postgresql-@SLOT@/bin/postgres \ >+ --exec /usr/@LIBDIR@/postgresql-@SLOT@/bin/postgres \ > --retry ${retries} \ > --pidfile ${DATA_DIR%/}/postmaster.pid > >diff --git a/postgresql.service b/postgresql.service >index f8be8ac..20ed27a 100644 >--- a/postgresql.service >+++ b/postgresql.service >@@ -37,9 +37,9 @@ Environment=DATA_DIR=/var/lib/postgresql/@SLOT@/data > # StandardOutput=syslog > > ExecStartPre=/usr/bin/postgresql-@SLOT@-check-db-dir >-ExecStart=/usr/lib/postgresql-@SLOT@/bin/pg_ctl start -D ${DATA_DIR} -s -l ${DATA_DIR}/postmaster.log -o "-p ${PGPORT} -D ${PGDATA} --data-directory=${DATA_DIR}" -w -t 300 >-ExecStop=/usr/lib/postgresql-@SLOT@/bin/pg_ctl stop -D ${DATA_DIR} -s -m fast >-ExecReload=/usr/lib/postgresql-@SLOT@/bin/pg_ctl reload -D ${DATA_DIR} -s >+ExecStart=/usr/@LIBDIR@/postgresql-@SLOT@/bin/pg_ctl start -D ${DATA_DIR} -s -l ${DATA_DIR}/postmaster.log -o "-p ${PGPORT} -D ${PGDATA} --data-directory=${DATA_DIR}" -w -t 300 >+ExecStop=/usr/@LIBDIR@/postgresql-@SLOT@/bin/pg_ctl stop -D ${DATA_DIR} -s -m fast >+ExecReload=/usr/@LIBDIR@/postgresql-@SLOT@/bin/pg_ctl reload -D ${DATA_DIR} -s > > # Give a reasonable amount of time for the server to start up/shut down > TimeoutSec=300 >-- >1.8.4 >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 489632
: 362106 |
362108