diff options
author | Christopher Baines <mail@cbaines.net> | 2020-10-02 19:06:50 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-10-20 22:39:43 +0100 |
commit | a698df72d37aa5173c357b7d1e3873d2c2c64c32 (patch) | |
tree | 5ad67ce5ea44da50d16b43fc8bbf5962a175cf7e /gnu | |
parent | 93576e4475c7f72a2f8aa05293244f9f669154a3 (diff) | |
download | guix-a698df72d37aa5173c357b7d1e3873d2c2c64c32.tar.gz |
services: databases: Deprecate the postgresql-service procedure.
Using the service type directly is a better approach, making it easier to configure the service. * gnu/services/databases.scm (postgresql-service): Deprecate this procedure. * doc/guix.texi (PostgreSQL): Update the documentation for the use of (service postgresql-service-type).
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/databases.scm | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index 2bddf70f71..7908a3e0f6 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -30,6 +30,7 @@ #:use-module (gnu packages databases) #:use-module (guix build-system trivial) #:use-module (guix build union) + #:use-module (guix deprecation) #:use-module (guix modules) #:use-module (guix packages) #:use-module (guix records) @@ -281,12 +282,13 @@ host all all ::1/128 md5")) (compose list postgresql-configuration-postgresql)))) (default-value (postgresql-configuration)))) -(define* (postgresql-service #:key (postgresql postgresql) - (port 5432) - (locale "en_US.utf8") - (config-file (postgresql-config-file)) - (data-directory "/var/lib/postgresql/data") - (extension-packages '())) +(define-deprecated (postgresql-service #:key (postgresql postgresql) + (port 5432) + (locale "en_US.utf8") + (config-file (postgresql-config-file)) + (data-directory "/var/lib/postgresql/data") + (extension-packages '())) + postgresql-service-type "Return a service that runs @var{postgresql}, the PostgreSQL database server. The PostgreSQL daemon loads its runtime configuration from @var{config-file} |