From 3167912d77540e4e82d9133d16d8c3189a776912 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 9 Aug 2020 11:25:43 +0000 Subject: Add genenetwork1 --- run_genenetwork1.sh | 2 ++ shepherd/init.d/genenetwork1.scm | 12 ++++++++++++ shepherd/init.d/test-upgrade.scm | 1 + 3 files changed, 15 insertions(+) create mode 100755 run_genenetwork1.sh create mode 100644 shepherd/init.d/genenetwork1.scm diff --git a/run_genenetwork1.sh b/run_genenetwork1.sh new file mode 100755 index 0000000..48d7eb0 --- /dev/null +++ b/run_genenetwork1.sh @@ -0,0 +1,2 @@ +#!/bin/sh +$(/home/shepherd/.config/guix/current/bin/guix system container /home/shepherd/guix-bioinformatics/gn/services/genenetwork.scm --network) diff --git a/shepherd/init.d/genenetwork1.scm b/shepherd/init.d/genenetwork1.scm new file mode 100644 index 0000000..31f1bb0 --- /dev/null +++ b/shepherd/init.d/genenetwork1.scm @@ -0,0 +1,12 @@ +(define genenetwork1 + (make + #:provides '(genenetwork1) + #:docstring "Run the Legacy Genenetwork webserver" + #:start (make-forkexec-constructor + '("/usr/bin/sudo" "/home/shepherd/run_genenetwork1.sh") + #:log-file "/home/shepherd/logs/genenetwork1.log") + #:stop (make-kill-destructor) + #:respawn? #t)) +(register-services genenetwork1) + +(start genenetwork1) diff --git a/shepherd/init.d/test-upgrade.scm b/shepherd/init.d/test-upgrade.scm index c9ac5de..6750ede 100644 --- a/shepherd/init.d/test-upgrade.scm +++ b/shepherd/init.d/test-upgrade.scm @@ -8,6 +8,7 @@ '("guix" "build" "-L" "/home/shepherd/guix-bioinformatics" "-L" "/home/shepherd/guix-past/modules" + "genenetwork1" "httpd22-with-mod-python" ;"bnw" octave-3.4.3 FTBFS "gitea" "go-ipfs" -- cgit v1.2.3