projects/aports·blob master · refs

74 lines · 3.0 KiB

1# Configuration for /etc/init.d/postgresql
2#
3# For more information about shutdown modes see
4# https://www.postgresql.org/docs/13/server-shutdown.html.
5#
6# NOTE: If you need to export environment variables for the database process,
7# just add `export VAR=VAL` here (e.g. `export PGPASSFILE="/path/to/.pgpass"`).
8# Config variable 'env_vars' is deprecated.
9
10# Which port and socket to bind PostgreSQL.
11# This may be overriden in postgresql.conf.
12#port="5432"
13
14# How long to wait for server to start in seconds.
15#start_timeout=10
16
17# Timeout in seconds for Smart Shutdown (SIGTERM) - disallow new connections
18# and wait for clients to disconnect from the server before shutting down.
19# Set to 0 to skip Smart Shutdown phase when executing 'stop' command.
20#stop_smart_timeout=5
21
22# Timeout in seconds for Fast Shutdown (SIGINT) - forcefully disconnect clients
23# from server, abort their transactions and shut down. This is performed after
24# $stop_smart_timeout has exceeded (or skipped) when executing 'stop' command.
25# Set to 0 to skip Fast Shutdown phase.
26#stop_fast_timeout=10
27
28# Timeout in seconds for Immediate Shutdown (SIGQUIT) - terminate client
29# connections and quit without doing normal database shutdown processing.
30# This will lead to recovery (by replaying the WAL log) upon next start-up.
31# This is performed after both $stop_smart_timeout and $stop_fast_timeout has
32# exceeded (or skipped) when executing 'stop' command. Set to non-zero value
33# to enable Immediate Shutdown.
34#stop_force_timeout=0
35
36# Extra options to run postmaster with, e.g.:
37# -N is the maximal number of client connections
38# -B is the number of shared buffers (has to be at least 2x the value for -N)
39# Please read man postgres(1) for more options. Many of these options can be
40# set directly in the configuration file.
41# pg_opts="-N 512 -B 1024"
42
43# Location of postmaster.log.
44#logfile="/var/log/postgresql/postmaster.log"
45
46# Automatically set up a new database if missing on startup.
47#auto_setup="yes"
48
49
50##############################################################################
51#
52# The following values should NOT be arbitrarily changed!
53#
54# The initscript uses these variables to inform PostgreSQL where to find
55# its data directory and configuration files.
56
57# Which PostgreSQL major version to use? Defaults to the default version
58# as configured by /usr/sbin/pg_versions.
59#pg_version=$(pg_versions get-default)
60
61# Where the data directory is located/to be created.
62#data_dir="/var/lib/postgresql/$pg_version/data"
63
64# Where the configuration files are localed/to be created.
65# If left at the default value and /etc/postgresql/postgresql.conf doesn't
66# exist when starting the service, it fallbacks to $data_dir.
67#conf_dir="/etc/postgresql"
68
69# Additional options to pass to initdb. See man initdb(1) for available options.
70#
71# NOTE: musl libc doesn't support locales; if you use a locale other than "C",
72# postgres will work, but it will still behave like with "C". You can and
73# should use ICU-based collations instead of libc.
74#initdb_opts="-E UTF-8 --locale-provider=icu --icu-locale=en-001-x-icu --data-checksums"