Last change
on this file since 4d5e736 was
f95ad48,
checked in by jbecerra <jbecerra@…>, 10 years ago
|
Corregido bug cuando se trata de añadir a init.d
|
-
Property mode set to
100755
|
File size:
887 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | ### BEGIN INIT INFO |
---|
3 | # Provides: start-pentaho stop-pentaho |
---|
4 | # Required-Start: networking postgresql |
---|
5 | # Required-Stop: postgresql |
---|
6 | # Default-Start: 2 3 4 5 |
---|
7 | # Default-Stop: 0 1 6 |
---|
8 | # Description: Pentaho BA Server |
---|
9 | ### END INIT INFO |
---|
10 | |
---|
11 | |
---|
12 | export PENTAHO_HOME=/usr/local/pentaho/biserver |
---|
13 | |
---|
14 | case "$1" in |
---|
15 | 'start') |
---|
16 | |
---|
17 | echo "Iniciando pentaho biserver" |
---|
18 | cd $PENTAHO_HOME/biserver-ce |
---|
19 | ./start-pentaho.sh & |
---|
20 | |
---|
21 | echo "Iniciando pentaho administration-console" |
---|
22 | cd $PENTAHO_HOME/administration-console |
---|
23 | ./start-pac.sh & |
---|
24 | |
---|
25 | echo "ok" |
---|
26 | ;; |
---|
27 | |
---|
28 | 'stop') |
---|
29 | |
---|
30 | echo "Finalizando pentaho administration-console" |
---|
31 | cd $PENTAHO_HOME/administration-console |
---|
32 | ./stop-pac.sh & |
---|
33 | |
---|
34 | echo "Finalizando pentaho biserver" |
---|
35 | cd $PENTAHO_HOME/biserver-ce |
---|
36 | ./stop-pentaho.sh & |
---|
37 | |
---|
38 | echo "ok" |
---|
39 | ;; |
---|
40 | 'restart') |
---|
41 | $0 stop |
---|
42 | sleep 5 |
---|
43 | $0 start |
---|
44 | ;; |
---|
45 | |
---|
46 | *) |
---|
47 | echo "Usage: $0 (start|stop|restart)" |
---|
48 | |
---|
49 | esac |
---|
50 | |
---|
51 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.