aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")))