Merge pull request #4966 from solgenomics/topic/fix_seedlot_spreadsheet_info
[sgn.git] / run_cassava_production_server.sh
blobbce211a500a9ac7b4db4d7df992ebc13080af4b1
1 #!/bin/bash
3 ### BEGIN INIT INFO
4 # Provides: scriptname
5 # Required-Start: $all
6 # Required-Stop:
7 # Default-Start: 2 3 4 5
8 # Default-Stop: 0 1 6
9 # Short-Description: Start daemon at boot time
10 # Description: Enable service provided by daemon.
11 ### END INIT INFO
15 unset PERL5LIB
17 echo "PERL5LIB is now $PERL5LIB";
19 export PERL5LIB=/usr/local/share/cassava-site/cassava/lib:/usr/local/share/cassava-site/sgn/lib/:/usr/local/share/cassava-site/cxgn-corelibs/lib/:/usr/local/share/cassava-site/Phenome/lib/:/usr/local/share/cassava-site/tomato_genome/lib/:/usr/local/share/cassava-site/Cview/lib/:/usr/local/share/cassava-site/biosource/lib/:/usr/local/share/cassava-site/local-lib/lib/perl5:/usr/local/share/cassava-site/ITAG/lib/
21 echo "Starting catalyst server...";
23 echo "PERL5LIB is $PERL5LIB";
25 mkdir /tmp/sgn-tmp
27 screen ./bin/sgn_server.pl -r --fork
29 exit;
32 ########
34 =head1 NAME
36 ./run_cassava_production_server.sh
38 =head1 DESCRIPTION
40 Use this script to run the cassavabase production server. It sets the PERL5LIB correctly for the production server environment, and then starts the Catalyst server. It does not restart the nginx server (maybe in the future). It also does not stop a running server.
42 =head1 AUTHOR
44 Lukas Mueller <lam87@cornell.edu>
46 =cut