[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[shepherd] 05/07: support: 'verify-dir' reports errors with 'report-erro
From: |
Ludovic Courtès |
Subject: |
[shepherd] 05/07: support: 'verify-dir' reports errors with 'report-error'. |
Date: |
Wed, 19 Apr 2023 18:17:33 -0400 (EDT) |
civodul pushed a commit to branch master
in repository shepherd.
commit 75945f1b15a1d8d531b1cf5f20fdaeaa7f09f1af
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed Apr 19 18:53:36 2023 +0200
support: 'verify-dir' reports errors with 'report-error'.
* modules/shepherd/support.scm (verify-dir): Use 'report-error' rather
than 'local-output'.
---
modules/shepherd/support.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/shepherd/support.scm b/modules/shepherd/support.scm
index 2cf6aae..4cd21ac 100644
--- a/modules/shepherd/support.scm
+++ b/modules/shepherd/support.scm
@@ -451,5 +451,6 @@ directory are not checked."
(let ((dir-stat (stat dir)))
(unless (and (= (stat:uid dir-stat) (getuid))
(= (stat:perms dir-stat) #o700))
- (local-output (l10n "Socket directory setup is insecure."))
+ (report-error (l10n "~a: socket directory has insecure permissions")
+ dir)
(exit 1)))))
- [shepherd] branch master updated (fbca4e2 -> 3ee3fad), Ludovic Courtès, 2023/04/19
- [shepherd] 03/07: herd: 'herd status' distinguishes services that failed to start., Ludovic Courtès, 2023/04/19
- [shepherd] 02/07: Switch from SRFI-11 to SRFI-71., Ludovic Courtès, 2023/04/19
- [shepherd] 06/07: support: Add colors to 'report-error'., Ludovic Courtès, 2023/04/19
- [shepherd] 05/07: support: 'verify-dir' reports errors with 'report-error'.,
Ludovic Courtès <=
- [shepherd] 04/07: Add (shepherd colors)., Ludovic Courtès, 2023/04/19
- [shepherd] 07/07: herd: Make 'status' output more colorful., Ludovic Courtès, 2023/04/19
- [shepherd] 01/07: .guix-channel: Add primary URL., Ludovic Courtès, 2023/04/19