summaryrefslogtreecommitdiff
path: root/src/poi-service/run-capi
blob: 6503617ec0a5d2ea6c9280501a7b8f5e35de3ea9 (plain)
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
#!/bin/sh

# @licence app begin@
# SPDX-License-Identifier: MPL-2.0
#
# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen
#
# \file run-capi
#
# \brief This file is part of the Build System.
#
# \author Philippe Colliot <philippe.colliot@mpsa.com>
#
# \version 1.0
#
# This Source Code Form is subject to the terms of the
# Mozilla Public License (MPL), v. 2.0.
# If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# For further information see http://www.genivi.org/.
#
# List of changes:
# 
# <date>, <name>, <description of change>
#
# @licence end@

CURDIR=$PWD

BIN_DIR=$CURDIR/poi-server-capi/bin
POI_SERVER_BIN_DIR=$BIN_DIR
RESOURCE_DIR=$CURDIR/resource
MAIN_DATABASE=$RESOURCE_DIR/poi-database-sample.db
ADDITIONAL_DATABASE=$RESOURCE_DIR/poi-database-managed.db

echo 'kill reminding orphan process if necessary'
kill -9 `ps -ef | egrep poi-server | grep -v grep | awk '{print $2}'`

echo '------------------------start the server------------------------'
$POI_SERVER_BIN_DIR/poi-server -f $MAIN_DATABASE