aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql.init')
-rwxr-xr-xpostgresql.init4
1 files changed, 2 insertions, 2 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