[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: services: syslog: Add 'configuration' action.
From: |
guix-commits |
Subject: |
01/09: services: syslog: Add 'configuration' action. |
Date: |
Mon, 27 Mar 2023 12:52:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 384856c9fbe76d107107f49a575fc5c26e4e332e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Mar 27 09:42:20 2023 +0200
services: syslog: Add 'configuration' action.
* gnu/services/base.scm (syslog-service-type): Add 'actions' field.
---
gnu/services/base.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 2c984a0747..5b0b3bb0ab 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1554,14 +1554,17 @@ Service Switch}, for an example."
(shepherd-service-type
'syslog
(lambda (config)
+ (define config-file
+ (syslog-configuration-config-file config))
+
(shepherd-service
(documentation "Run the syslog daemon (syslogd).")
(provision '(syslogd))
(requirement '(user-processes))
+ (actions (list (shepherd-configuration-action config-file)))
(start #~(let ((spawn (make-forkexec-constructor
(list #$(syslog-configuration-syslogd config)
- "--rcfile"
- #$(syslog-configuration-config-file config))
+ "--rcfile" #$config-file)
#:pid-file "/var/run/syslog.pid")))
(lambda ()
;; Set the umask such that file permissions are #o640.
- branch master updated (da410b45a9 -> c9af27d4ca), guix-commits, 2023/03/27
- 04/09: substitute: Gracefully handle TLS termination while fetching narinfos., guix-commits, 2023/03/27
- 05/09: gnu: hevea: Update to 2.36., guix-commits, 2023/03/27
- 01/09: services: syslog: Add 'configuration' action.,
guix-commits <=
- 06/09: syscalls: 'getxattr' throws upon error., guix-commits, 2023/03/27
- 03/09: services: ntpd: Add 'configuration' action., guix-commits, 2023/03/27
- 09/09: lint: Append "/info/refs" to git-reference-url., guix-commits, 2023/03/27
- 02/09: services: network-manager: Add 'configuration' action., guix-commits, 2023/03/27
- 07/09: lint: Prevent inlining of 'package-vulnerabilities'., guix-commits, 2023/03/27
- 08/09: gnu: Add atftp., guix-commits, 2023/03/27