[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: services: mcron: Log to a file.
From: |
guix-commits |
Subject: |
01/01: services: mcron: Log to a file. |
Date: |
Sun, 12 May 2019 13:17:11 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit f8cd07e8d8acf85fd6d08646a0719178895b5894
Author: Christopher Baines <address@hidden>
Date: Thu May 9 18:37:45 2019 +0100
services: mcron: Log to a file.
This makes it easier to read the output, as it's recorded in a file.
* gnu/services/mcron.scm (mcron-shepherd-services): Add #:log-file to
make-forkexec-constructor.
---
gnu/services/mcron.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm
index 1b232b6..fd84589 100644
--- a/gnu/services/mcron.scm
+++ b/gnu/services/mcron.scm
@@ -121,7 +121,9 @@ files."
(cons* "GUILE_AUTO_COMPILE=0"
"PATH=/run/current-system/profile/bin"
(remove (cut string-prefix? "PATH=" <>)
- (environ)))))
+ (environ)))
+
+ #:log-file "/var/log/mcron.log"))
(stop #~(make-kill-destructor))
(actions