guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/05: services: postgresql: Use syslog.


From: Ludovic Courtès
Subject: 05/05: services: postgresql: Use syslog.
Date: Tue, 22 Mar 2016 23:23:20 +0000

civodul pushed a commit to branch master
in repository guix.

commit 9b1cee97a5a75766cb52553111794c758c4f1651
Author: Ludovic Courtès <address@hidden>
Date:   Tue Mar 22 23:52:14 2016 +0100

    services: postgresql: Use syslog.
    
    Fixes <http://bugs.gnu.org/23064>.
    Reported by Danny Milosavljevic <address@hidden>.
    
    * gnu/services/databases.scm (%default-postgres-config): Add
    'log_destination' line.
    (postgresql-shepherd-service): Add requirement on 'syslogd'.
---
 gnu/services/databases.scm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index 6c3b829..690375e 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 David Thompson <address@hidden>
-;;; Copyright © 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2015, 2016 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2016 Leo Famulari <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -56,6 +56,7 @@ host  all     all     ::1/128         trust"))
 
 (define %default-postgres-config
   (mixed-text-file "postgresql.conf"
+                   "log_destination = 'syslog'\n"
                    "hba_file = '" %default-postgres-hba "'\n"
                    "ident_file = '" %default-postgres-ident "'\n"))
 
@@ -116,7 +117,7 @@ host        all     all     ::1/128         trust"))
        (list (shepherd-service
               (provision '(postgres))
               (documentation "Run the PostgreSQL daemon.")
-              (requirement '(user-processes loopback))
+              (requirement '(user-processes loopback syslogd))
               (start #~(make-forkexec-constructor #$start-script))
               (stop #~(make-kill-destructor))))))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]