* [bug#35656] [PATCH] services: mcron: Log to a file.
@ 2019-05-09 17:40 Christopher Baines
2019-05-10 13:09 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2019-05-09 17:40 UTC (permalink / raw)
To: 35656
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 1b232b6cba..fd84589c19 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
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#35656] [PATCH] services: mcron: Log to a file.
2019-05-09 17:40 [bug#35656] [PATCH] services: mcron: Log to a file Christopher Baines
@ 2019-05-10 13:09 ` Ludovic Courtès
2019-05-12 23:14 ` bug#35656: " Christopher Baines
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-05-10 13:09 UTC (permalink / raw)
To: Christopher Baines; +Cc: 35656
Hi,
Christopher Baines <mail@cbaines.net> skribis:
> 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.
Good idea, LGTM!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#35656: [PATCH] services: mcron: Log to a file.
2019-05-10 13:09 ` Ludovic Courtès
@ 2019-05-12 23:14 ` Christopher Baines
0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2019-05-12 23:14 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 35656-done
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hi,
>
> Christopher Baines <mail@cbaines.net> skribis:
>
>> 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.
>
> Good idea, LGTM!
I've pushed this to master now, thanks for taking a look :)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-12 23:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09 17:40 [bug#35656] [PATCH] services: mcron: Log to a file Christopher Baines
2019-05-10 13:09 ` Ludovic Courtès
2019-05-12 23:14 ` bug#35656: " Christopher Baines
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.