From b17e326f1731d7170a48cfad4d9d4c91bad7b8a4 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 19 Dec 2016 23:01:04 +0100 Subject: services: cuirass: Add 'log-file' option. * gnu/services/cuirass.scm ()[log-file]: New field. (cuirass-shepherd-service): Pass it to 'make-forkexec-constructor'. --- gnu/services/cuirass.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm index 4975a7e16e..8e9316ffc7 100644 --- a/gnu/services/cuirass.scm +++ b/gnu/services/cuirass.scm @@ -42,6 +42,8 @@ (define-module (gnu services cuirass) (define-record-type* cuirass-configuration make-cuirass-configuration cuirass-configuration? + (log-file cuirass-configuration-log-file ;string + (default "/var/log/cuirass.log")) (cache-directory cuirass-configuration-cache-directory ;string (dir-name) (default "")) (user cuirass-configuration-user ;string @@ -64,6 +66,7 @@ (define (cuirass-shepherd-service config) (and (cuirass-configuration? config) (let ((cache-directory (cuirass-configuration-cache-directory config)) + (log-file (cuirass-configuration-log-file config)) (interval (cuirass-configuration-interval config)) (database (cuirass-configuration-database config)) (specs (cuirass-configuration-specifications config)) @@ -86,7 +89,8 @@ (define (cuirass-shepherd-service config) "--database" #$database "--interval" #$(number->string interval) #$@(if use-substitutes? '("--use-substitutes") '()) - #$@(if one-shot? '("--one-shot") '())))) + #$@(if one-shot? '("--one-shot") '())) + #:log-file #$log-file)) (stop #~(make-kill-destructor))))))) (define (cuirass-account config) -- cgit v1.2.3