allow headers on transaction lists
[xtuple] / scripts / tomcat
1 #!/bin/bash
2
3 ### BEGIN INIT INFO
4 # Provides:        tomcat7
5 # Required-Start:  $network
6 # Required-Stop:   $network
7 # Default-Start:   2 3 4 5
8 # Default-Stop:    0 1 6
9 # Short-Description: Start/Stop Tomcat server
10 ### END INIT INFO
11
12 # copy to /etc/init.d/
13 # run update-rc.d tomcat7 defaults to enable
14
15 PATH=/sbin:/bin:/usr/sbin:/usr/bin
16
17 # directory of where biserver lives
18 BISERVER_HOME=/usr/local/xtuple/ErpBI/biserver-ce
19
20
21 start() {
22  cd $BISERVER_HOME
23  ./start-pentaho.sh
24 }
25
26 stop() {
27  cd $BISERVER_HOME
28  ./stop-pentaho.sh
29 }
30
31 case $1 in
32   start|stop) $1;;
33   restart) stop; start;;
34   *) echo "Run as $0 <start|stop|restart>"; exit 1;;
35 esac