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