aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2021-05-04 12:35:02 +0000
committerShepherd2021-05-06 09:21:38 +0000
commitec2ddc77f9e97794d0bc04cc37279c040c6aaf08 (patch)
tree1e55233d05f4d48c9313b6d761751ac1845a8085
parent2474df352b0de12dc18ba46f00c5ceddd0f29863 (diff)
downloadgn-shepherd-services-ec2ddc77f9e97794d0bc04cc37279c040c6aaf08.tar.gz
genome-browser: new service.
-rwxr-xr-xrun_genome_browser.sh2
-rw-r--r--shepherd/init.d/genome-browser.scm12
2 files changed, 14 insertions, 0 deletions
diff --git a/run_genome_browser.sh b/run_genome_browser.sh
new file mode 100755
index 0000000..68c57fb
--- /dev/null
+++ b/run_genome_browser.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+$(/home/shepherd/guix-profiles/genome-browser/bin/guix system container -L /home/shepherd/guix-past/modules -L /home/shepherd/guix-bioinformatics /home/shepherd/guix-bioinformatics/gn/services/genome-browser.scm --network --share=/export/efraimf/UCSC_Genome/gbdb=/gbdb --share=/export/efraimf/UCSC_Genome/var-lib-mysql=/var/lib/mysql --share=/export/efraimf/UCSC_Genome/var-cache-genome=/var/cache/genome --share=/export/efraimf/UCSC_Genome/var-cache-genome=/var/www/html/trash)
diff --git a/shepherd/init.d/genome-browser.scm b/shepherd/init.d/genome-browser.scm
new file mode 100644
index 0000000..60d5ce7
--- /dev/null
+++ b/shepherd/init.d/genome-browser.scm
@@ -0,0 +1,12 @@
+(define genome-browser
+ (make <service>
+ #:provides '(genome-browser)
+ #:docstring "Run an instance of the UCSC Genome Browser webserver"
+ #:start (make-forkexec-constructor
+ '("/usr/bin/sudo" "/home/shepherd/run_genome_browser.sh")
+ #:log-file "/home/shepherd/logs/genome-browser.log")
+ #:stop (make-kill-destructor)
+ #:respawn? #t))
+(register-services genome-browser)
+
+(start genome-browser)