Browse Source

genecup: update service.

master
Efraim Flashner 4 months ago
committed by Shepherd
parent
commit
b3c96077c2
  1. 6
      run_genecup.sh
  2. 7
      shepherd/init.d/genecup.scm

6
run_genecup.sh

@ -1,2 +1,6 @@
#!/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)
cd $(/home/shepherd/guix-profiles/genecup/bin/guix build -L /home/shepherd/guix-past/modules -L /home/shepherd/guix-bioinformatics genecup-with-tensorflow-native)
export EDIRECT_PUBMED_MASTER=/export2/PubMed
export PERL_LWP_SSL_CA_FILE=/etc/ssl/certs/ca-certificates.crt
export TMPDIR=/export/ratspub/tmp
/home/shepherd/guix-profiles/genecup/bin/guix environment -L /home/shepherd/guix-past/modules -L /home/shepherd/guix-bioinformatics --ad-hoc genecup-with-tensorflow-native -- ./server.py

7
shepherd/init.d/genecup.scm

@ -4,10 +4,13 @@
#:docstring "Run the genecup.org web server"
#:start (make-forkexec-constructor
'("/home/shepherd/run_genecup.sh")
#:environment-variables
(list "EDIRECT_PUBMED_MASTER=/export2/PubMed"
"NLTK_DATA=/home/hchen/nltk_data"
"PERL_LWP_SSL_CA_FILE=/etc/ssl/certs/ca-certificates.crt"
"TMPDIR=/export/ratspub/tmp")
#: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)

Loading…
Cancel
Save