aboutsummaryrefslogtreecommitdiff
path: root/gn/services
diff options
context:
space:
mode:
authorjgart2024-08-02 16:11:14 -0500
committerjgart2024-08-02 16:11:14 -0500
commit57444f7e0f360eb88e11aed4217143cafb164325 (patch)
treea26fa0a1604df63b643569fd4a1645653b40f65d /gn/services
parent8bcb99e7d1fe7d5519935923d382a5deaa769936 (diff)
downloadguix-bioinformatics-57444f7e0f360eb88e11aed4217143cafb164325.tar.gz
rshiny: add logging for applications
Diffstat (limited to 'gn/services')
-rw-r--r--gn/services/rshiny.scm4
1 files changed, 3 insertions, 1 deletions
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