aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2021-05-27 08:35:31 +0000
committerShepherd2021-05-27 08:35:31 +0000
commit663f6ef7a49dfd85d4bda075d73f361970f2fd7d (patch)
tree801aee8824feee377d1a9a27c77a97ee30b3c8d2
parent007532b94d73d9d26ab43326e2053ef74c426feb (diff)
downloadgn-shepherd-services-663f6ef7a49dfd85d4bda075d73f361970f2fd7d.tar.gz
genecup: new service.
-rwxr-xr-xrun_genecup.sh2
-rw-r--r--shepherd/init.d/genecup.scm14
2 files changed, 16 insertions, 0 deletions
diff --git a/run_genecup.sh b/run_genecup.sh
new file mode 100755
index 0000000..bfe90de
--- /dev/null
+++ b/run_genecup.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+$(/home/shepherd/guix-profiles/genecup/bin/guix system container -L /home/shepherd/guix-past/modules/ -L /home/shepherd/guix-bioinformatics/ /home/shepherd/guix-bioinformatics/gn/services/genecup-container.scm --network --share=/export2/PubMed=/export2/PubMed --share=/export/ratspub=/export/ratspub)
diff --git a/shepherd/init.d/genecup.scm b/shepherd/init.d/genecup.scm
new file mode 100644
index 0000000..9d27529
--- /dev/null
+++ b/shepherd/init.d/genecup.scm
@@ -0,0 +1,14 @@
+(define genecup
+ (make <service>
+ #:provides '(genecup)
+ #:docstring "Run the genecup.org web server"
+ #:start (make-forkexec-constructor
+ '("/home/shepherd/run_genecup.sh")
+ #:log-file "/home/shepherd/logs/genecup.log")
+ #:stop (make-kill-destructor)
+ ;; currently running in a screen session
+ #:auto-start? #f
+ #:respawn? #t))
+(register-services genecup)
+
+(start genecup)