-
Notifications
You must be signed in to change notification settings - Fork 36
/
run_cassava_production_server.sh
executable file
·46 lines (26 loc) · 1.27 KB
/
run_cassava_production_server.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
### BEGIN INIT INFO
# Provides: scriptname
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
unset PERL5LIB
echo "PERL5LIB is now $PERL5LIB";
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/
echo "Starting catalyst server...";
echo "PERL5LIB is $PERL5LIB";
mkdir /tmp/sgn-tmp
screen ./bin/sgn_server.pl -r --fork
exit;
########
=head1 NAME
./run_cassava_production_server.sh
=head1 DESCRIPTION
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.
=head1 AUTHOR
Lukas Mueller <[email protected]>
=cut