aboutsummaryrefslogtreecommitdiff
path: root/contrib/start-scripts
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-01-26 10:48:32 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-01-26 10:48:32 +0100
commit81266442fbcb19ec184134f0a256207f05026520 (patch)
tree16d805aef4dade972182d3c450d30a57df3c6249 /contrib/start-scripts
parent6c6b4972664491de408670354fdbccc7c83a1c89 (diff)
downloadpostgresql-81266442fbcb19ec184134f0a256207f05026520.tar.gz
postgresql-81266442fbcb19ec184134f0a256207f05026520.zip
Remove gratuitous references to postmaster program
"postgres" has long been officially preferred over "postmaster" as the name of the program to invoke to run the server. Some example scripts and code comments still used the latter. Change those. Discussion: https://www.postgresql.org/message-id/flat/ece84b69-8f94-8b88-925f-64207cb3a2f0@enterprisedb.com
Diffstat (limited to 'contrib/start-scripts')
-rw-r--r--contrib/start-scripts/freebsd10
-rw-r--r--contrib/start-scripts/linux10
2 files changed, 10 insertions, 10 deletions
diff --git a/contrib/start-scripts/freebsd b/contrib/start-scripts/freebsd
index 3323237a54b..ed4f9ba6203 100644
--- a/contrib/start-scripts/freebsd
+++ b/contrib/start-scripts/freebsd
@@ -16,7 +16,7 @@ prefix=/usr/local/pgsql
# Data directory
PGDATA="/usr/local/pgsql/data"
-# Who to run the postmaster as, usually "postgres". (NOT "root")
+# Who to run postgres as, usually "postgres". (NOT "root")
PGUSER=postgres
# Where to keep a log file
@@ -27,14 +27,14 @@ PGLOG="$PGDATA/serverlog"
# The path that is to be used for the script
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-# What to use to start up the postmaster. (If you want the script to wait
+# What to use to start up postgres. (If you want the script to wait
# until the server has started, you could use "pg_ctl start" here.)
-DAEMON="$prefix/bin/postmaster"
+DAEMON="$prefix/bin/postgres"
-# What to use to shut down the postmaster
+# What to use to shut down postgres
PGCTL="$prefix/bin/pg_ctl"
-# Only start if we can find the postmaster.
+# Only start if we can find postgres.
test -x $DAEMON ||
{
echo "$DAEMON not found"
diff --git a/contrib/start-scripts/linux b/contrib/start-scripts/linux
index a7757162fc4..ca01e96a62b 100644
--- a/contrib/start-scripts/linux
+++ b/contrib/start-scripts/linux
@@ -34,7 +34,7 @@ prefix=/usr/local/pgsql
# Data directory
PGDATA="/usr/local/pgsql/data"
-# Who to run the postmaster as, usually "postgres". (NOT "root")
+# Who to run postgres as, usually "postgres". (NOT "root")
PGUSER=postgres
# Where to keep a log file
@@ -59,16 +59,16 @@ PGLOG="$PGDATA/serverlog"
# The path that is to be used for the script
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-# What to use to start up the postmaster. (If you want the script to wait
+# What to use to start up postgres. (If you want the script to wait
# until the server has started, you could use "pg_ctl start" here.)
-DAEMON="$prefix/bin/postmaster"
+DAEMON="$prefix/bin/postgres"
-# What to use to shut down the postmaster
+# What to use to shut down postgres
PGCTL="$prefix/bin/pg_ctl"
set -e
-# Only start if we can find the postmaster.
+# Only start if we can find postgres.
test -x $DAEMON ||
{
echo "$DAEMON not found"