From 57444f7e0f360eb88e11aed4217143cafb164325 Mon Sep 17 00:00:00 2001 From: jgart Date: Fri, 2 Aug 2024 16:11:14 -0500 Subject: rshiny: add logging for applications --- gn/services/rshiny.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gn') diff --git a/gn/services/rshiny.scm b/gn/services/rshiny.scm index 90e4728..8633c0a 100644 --- a/gn/services/rshiny.scm +++ b/gn/services/rshiny.scm @@ -9,6 +9,7 @@ (use-modules (gnu) (guix records) + (guix packages) (ice-9 match)) (use-service-modules shepherd) (use-package-modules cran) @@ -37,7 +38,8 @@ #$(string-append "/run/current-system/profile/bin/" binary)) ;#:log-file #$(string-append "/var/log/" binary ".log") ; kills shepherd #:environment-variables - (list "R_LIBS_USER=/run/current-system/profile/site-library/"))) + (list "R_LIBS_USER=/run/current-system/profile/site-library/") + #:log-file #$(string-append "/var/log/rshiny-" (package-name package) ".log"))) ;; Now lets try it with fork+exec ;; Outcome: shepherd says failed, runs in the background. ;(start -- cgit v1.2.3