aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2020-04-27 10:05:34 +0000
committerShepherd2020-04-27 10:05:34 +0000
commit3e1bfc2ab895a17d80aeae462d33f947adaa71e2 (patch)
tree3bbd5fa351ead655e4b049d598981492f42b03d6
parent124c7bf5129d34b7fc06720f6d247970929aa54f (diff)
downloadgn-shepherd-services-3e1bfc2ab895a17d80aeae462d33f947adaa71e2.tar.gz
shepherd: Add hrdp service
-rw-r--r--shepherd/init.d/hrdp-project.scm14
-rw-r--r--shepherd/init.d/test-upgrade.scm2
2 files changed, 15 insertions, 1 deletions
diff --git a/shepherd/init.d/hrdp-project.scm b/shepherd/init.d/hrdp-project.scm
new file mode 100644
index 0000000..1008aca
--- /dev/null
+++ b/shepherd/init.d/hrdp-project.scm
@@ -0,0 +1,14 @@
+(define hrdf-project
+ (make <service>
+ #:provides '(hrdf-project)
+ #:docstring "Run the hrdf-project web server"
+ #:start (make-forkexec-constructor
+ '("/var/guix/profiles/per-user/shepherd/current-guix/bin/guix"
+ "environment" "--ad-hoc" "hrdp-project" "--"
+ "sh" "-c" "$GUIX_ENVIRONMENT/main.py")
+ #:log-file "/home/shepherd/logs/hrdf-project.log")
+ #:stop (make-kill-destructor)
+ #:respawn? #t))
+(register-services hrdf-project)
+
+(start hrdf-project)
diff --git a/shepherd/init.d/test-upgrade.scm b/shepherd/init.d/test-upgrade.scm
index fc731ce..82662c3 100644
--- a/shepherd/init.d/test-upgrade.scm
+++ b/shepherd/init.d/test-upgrade.scm
@@ -8,7 +8,7 @@
'("guix" "build" "-L" "/home/shepherd/guix-bioinformatics"
"--no-grafts" "bnw" "gitea" "go-ipfs" "edirect"
"bxd-power-calculator-app" "rn6-assembly-error-app"
- "singlecellrshiny")
+ "singlecellrshiny" "virtuoso-ose" "hrdf-project")
;(zero? (system* "guix" "system" "-L" "/home/shepherd/guix-bioinformatics"
; "container" "/home/shepherd/guix-bioinformatics/gn/services/bnw-container.scm"
; "--share=/home/shepherd/logs/bnw-server=/var/log" "--network")))