summaryrefslogtreecommitdiff
path: root/tsp/start.sh
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-09-07 11:24:24 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2016-12-06 15:37:14 (GMT)
commitf1e2c6f8942e481488a4a383f6404f1f304d2a2e (patch)
tree5451e47cd76b5d48f433b9b2175701e0c4a702df /tsp/start.sh
parent14d6fb5c69743e38a54de331f3b027419410c3d2 (diff)
downloadmajor-f1e2c6f8942e481488a4a383f6404f1f304d2a2e.zip
major-f1e2c6f8942e481488a4a383f6404f1f304d2a2e.tar.gz
major-f1e2c6f8942e481488a4a383f6404f1f304d2a2e.tar.bz2
Add tsp/start.shrefs/changes/70/87370/7
It is counterpart to tsp/stop.sh. It installs cronfile and starts SDB server. Change-Id: Ib1344e4887c426d16ef37e312153705fc34f3a6e Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/start.sh')
-rwxr-xr-xtsp/start.sh29
1 files changed, 29 insertions, 0 deletions
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 <a.mistewicz@samsung.com>
+
+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