From f1e2c6f8942e481488a4a383f6404f1f304d2a2e Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Wed, 7 Sep 2016 13:24:24 +0200 Subject: [PATCH] Add tsp/start.sh It is counterpart to tsp/stop.sh. It installs cronfile and starts SDB server. Change-Id: Ib1344e4887c426d16ef37e312153705fc34f3a6e Signed-off-by: Aleksander Mistewicz --- tsp/start.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 tsp/start.sh diff --git a/tsp/start.sh b/tsp/start.sh new file mode 100755 index 0000000..15fd0b2 --- /dev/null +++ b/tsp/start.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved +# +# 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. + +# Author: Aleksander Mistewicz + +export TSP_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)" + +. "${TSP_DIR}/common.sh" + +echo "Install crontab" +CRONFILE="${TSP_DIR}/cronfile" +test -f "${CRONFILE}" || CRONFILE="${TSP_DIR}/cronfile.example" +crontab "${CRONFILE}" + +echo "Start SDB server" +sdb start-server -- 2.7.4