aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql/postgresql.confd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-15 21:11:13 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-15 23:37:29 +0200
commit10d9cc8000c7da49bf13e516928f30fc80b1cf9f (patch)
tree120655923e3fb61f93bfa09fbc7a6f08fd38a1a3 /main/postgresql/postgresql.confd
parentd698c1e58c607861670cd94c9b8cb22f97555a88 (diff)
downloadaports-10d9cc8000c7da49bf13e516928f30fc80b1cf9f.tar.bz2
aports-10d9cc8000c7da49bf13e516928f30fc80b1cf9f.tar.xz
main/postgresql: rewrite runscript
But keep it backward compatible with old confd.
Diffstat (limited to 'main/postgresql/postgresql.confd')
-rw-r--r--main/postgresql/postgresql.confd76
1 files changed, 37 insertions, 39 deletions
diff --git a/main/postgresql/postgresql.confd b/main/postgresql/postgresql.confd
index 3e59532224..b5b57329a9 100644
--- a/main/postgresql/postgresql.confd
+++ b/main/postgresql/postgresql.confd
@@ -1,55 +1,53 @@
-# Which port and socket to bind PostgreSQL
-PGPORT="5432"
-
-# How long to wait for server to start in seconds
-START_TIMEOUT=10
-
-# NICE_QUIT ignores new connections and wait for clients to disconnect from
-# server before shutting down. NICE_TIMEOUT in seconds determines how long to
-# wait for this to succeed.
-NICE_TIMEOUT=60
-
-# Forecfully disconnect clients from server and shut down. This is performed
-# after NICE_QUIT. Terminated client connections have their open transactions
-# rolled back.
-# Set RUDE_QUIT to "NO" to disable. RUDE_TIMEOUT in seconds.
-RUDE_QUIT="YES"
-RUDE_TIMEOUT=30
-
-# If the server still fails to shutdown, you can force it to quit by setting
-# this to YES and a recover-run will execute on the next startup.
-# Set FORCE_QUIT to "YES" to enable. FORCE_TIMEOUT in seconds.
-FORCE_QUIT="NO"
-FORCE_TIMEOUT=2
+# Which port and socket to bind PostgreSQL.
+# This may be overriden in postgresql.conf.
+#port="5432"
+
+# How long to wait for server to start in seconds.
+#start_timeout=10
+
+# Number of seconds to wait for clients to disconnect from the server before
+# shutting down. Set to zero to disable this timeout.
+#nice_timeout=60
+
+# Timeout in seconds for rude quit - forecfully disconnect clients from server
+# and shut down. This is performed after nice_timeout exceeded. Terminated
+# client connections have their open transactions rolled back.
+# Set "rude_quit=no" to disable.
+#rude_quit="yes"
+#rude_timeout=30
+
+# Timeout in seconds for force quit - if the server still fails to shutdown,
+# you can force it to quit and a recover-run will execute on the next startup.
+# Set "force_quit=yes" to enable.
+#force_quit="no"
+#force_timeout="2"
# Extra options to run postmaster with, e.g.:
-# -N is the maximal number of client connections
-# -B is the number of shared buffers and has to be at least 2x the value for -N
-# Please read the man-page to postmaster for more options. Many of these
-# options can be set directly in the configuration file.
-#PGOPTS="-N 512 -B 1024"
+# -N is the maximal number of client connections
+# -B is the number of shared buffers (has to be at least 2x the value for -N)
+# Please read man postgres(1) for more options. Many of these options can be
+# set directly in the configuration file.
+#pg_opts="-N 512 -B 1024"
# Pass extra environment variables. If you have to export environment variables
# for the database process, this can be done here.
# Don't forget to escape quotes.
-#PG_EXTRA_ENV="PGPASSFILE=\"/path/to/.pgpass\""
+#env_vars="PGPASSFILE=\"/path/to/.pgpass\""
+
+# Automatically set up a new database if missing on startup.
+#auto_setup="yes"
+
##############################################################################
#
-# The following values should not be arbitrarily changed.
+# The following values should NOT be arbitrarily changed!
#
# The initscript uses these variables to inform PostgreSQL where to find
# its data directory and configuration files.
-#
-##############################################################################
# PostgreSQL's Database Directory
-PGDATA="/var/lib/postgresql/9.6/data"
+#PGDATA="/var/lib/postgresql/@VERSION@/data"
# Additional options to pass to initdb.
-# See `man initdb' for available options.
-#PG_INITDB_OPTS="--locale=en_US.UTF-8"
-
-# Automatically set up a new database if missing on startup
-AUTO_SETUP=yes
-
+# See man initdb(1) for available options.
+#initdb_opts="--locale=en_US.UTF-8"