aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2021-01-18 10:52:25 +0100
committerMathieu Othacehe <othacehe@gnu.org>2021-01-28 12:57:26 +0100
commitfe4b8823505c3271fc3eacaa93c30a5cec078739 (patch)
treedd44ac59eb678e36265b25a74929ae0031c8885b /doc
parent6c0679215f4ffa534c1eb2e8c8a6e043a0c993fe (diff)
downloadguix-fe4b8823505c3271fc3eacaa93c30a5cec078739.tar
guix-fe4b8823505c3271fc3eacaa93c30a5cec078739.tar.gz
services: postgresql: Add log directory support.
* gnu/services/databases.scm (postgresql-configuration-log-directory): New procedure. (<postgresql-configuration>)[log-directory]: New field. (postgresql-activation): Create the log directory. (postgresql-shepherd-service): Honor it. * gnu/tests/databases.scm (%postgresql-log-directory): New variable. (log-file): New test case. * doc/guix.texi (Database Services): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index b01bbf0d96..f4fbe6b0e6 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -19344,6 +19344,11 @@ The configuration file to use when running PostgreSQL@. The default
behaviour uses the postgresql-config-file record with the default values
for the fields.
+@item @code{log-directory} (default: @code{"/var/log/postgresql"})
+The directory where @command{pg_ctl} output will be written in a file
+named @code{"pg_ctl.log"}. This file can be useful to debug PostgreSQL
+configuration errors for instance.
+
@item @code{data-directory} (default: @code{"/var/lib/postgresql/data"})
Directory in which to store the data.