aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-12-14 08:35:48 +0000
committerLudovic Courtès <ludo@gnu.org>2016-12-15 16:54:22 +0100
commit2d3d5cc5ea9d4b991f2f640543ad70c902bc0191 (patch)
tree4ac61a636af78cb85d2cca9e3fa3ce551f7b8c23 /doc
parenteee7878f4e972f0c13bde3a1cdf4caa1085af472 (diff)
downloadgnu-guix-2d3d5cc5ea9d4b991f2f640543ad70c902bc0191.tar
gnu-guix-2d3d5cc5ea9d4b991f2f640543ad70c902bc0191.tar.gz
services: postgresql: Add port to configuration
* gnu/services/databases.scm (<postgresql-configuration>): Add port field. (postgresql-shepherd-service): Pass port to postgres. (postgresql-service): Add port default. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 0a92bd6b5c..cc90ca5775 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -10166,13 +10166,14 @@ Users need to be in the @code{lp} group to access the D-Bus service.
The @code{(gnu services databases)} module provides the following services.
@deffn {Scheme Procedure} postgresql-service [#:postgresql postgresql] @
- [#:config-file] [#:data-directory ``/var/lib/postgresql/data'']
+ [#:config-file] [#:data-directory ``/var/lib/postgresql/data''] @
+ [#:port 5432]
Return a service that runs @var{postgresql}, the PostgreSQL database
server.
The PostgreSQL daemon loads its runtime configuration from
-@var{config-file} and stores the database cluster in
-@var{data-directory}.
+@var{config-file}, stores the database cluster in @var{data-directory} and
+listens on @var{port}.
@end deffn
@deffn {Scheme Procedure} mysql-service [#:config (mysql-configuration)]