-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·49 lines (42 loc) · 1.62 KB
/
start.sh
File metadata and controls
executable file
·49 lines (42 loc) · 1.62 KB
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
47
48
49
#!/bin/bash
#
# Copyright (C) 2014 Salzburg Research.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
. lib.sh
T1=$(date +%s.%N)
log "Building platform from the source code...." debug
init
log "Successfully compiled platform source code" info
log "Starting marmotta backend...." debug
exec "mvn tomcat7:run" "marmotta" "backends/marmotta/webapp/"
log "Marmotta backend started at $MARMOTTA_URL" info
log "Starting stanbol worker...." debug
exec "mvn package tomcat7:run" "stanbol" "workers/stanbol/"
log "Stanbol worker started at $STANBOL_URL" info
log "Starting proxy...." debug
exec "mvn exec:java -DskipTests" "proxy" "proxy/"
log "LDP Extraction proxy started at $PROXY_URL" debug
log "Successfully started Fusepool P3 platform!" info
T2=$(date +%s.%N)
dt=$(echo "$T2 - $T1" | bc)
dd=$(echo "$dt/86400" | bc)
dt2=$(echo "$dt-86400*$dd" | bc)
dh=$(echo "$dt2/3600" | bc)
dt3=$(echo "$dt2-3600*$dh" | bc)
dm=$(echo "$dt3/60" | bc)
ds=$(echo "$dt3-60*$dm" | bc)
runtime=$(printf "%d:%02d:%02d:%02.4f" $dd $dh $dm $ds)
log "(total time: $runtime)" debug
log "Fusepool P3 platform successfully started!" info
log "logs available at target/*.log" warn