[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: services: hurd: Add syslog.
From: |
guix-commits |
Subject: |
01/03: services: hurd: Add syslog. |
Date: |
Mon, 13 Apr 2020 17:00:22 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 846656408e20e80429e438e2db72d69b6e39da7f
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Mon Apr 13 22:44:45 2020 +0200
services: hurd: Add syslog.
* gnu/services/hurd.scm (<syslog-configuration>): New variable.
(syslog-shepherd-service): New function.
(hurd-service->shepherd-service): Use them to add entry for syslog.
---
gnu/services/hurd.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/services/hurd.scm b/gnu/services/hurd.scm
index 8fe946a..b3b4305 100644
--- a/gnu/services/hurd.scm
+++ b/gnu/services/hurd.scm
@@ -53,6 +53,7 @@
(($ <hurd-console-configuration>) (hurd-console-shepherd-service config))
(($ <hurd-ttys-configuration>) (hurd-ttys-shepherd-service config))
(($ <openssh-configuration>) (hurd-ssh-shepherd-service config))
+ (($ <syslog-configuration>) (syslog-shepherd-service config))
(('user-processes) (hurd-user-processes-shepherd-service #f))
(_ '()))))
@@ -69,6 +70,19 @@
;;;
+;;; Bridge for syslog.
+;;;
+
+(define <syslog-configuration>
+ (@@ (gnu services base) <syslog-configuration>))
+
+(define (syslog-shepherd-service config)
+ (append-map (cut <> config)
+ (map service-extension-compute
+ (service-type-extensions syslog-service-type))))
+
+
+;;;
;;; Dummy hurd-user-processes service, required for guix-daemon.
;;;