summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2017-06-08 13:32:22 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2017-06-08 13:32:22 -0400
commit9d2148a9ba9edc814654b97b70c4a0f999ebcf8b (patch)
tree58870bb3824d4d8d91b0d5462b72ad87b598af47
parent97583341890a91223bd122275e79f7caa60260f2 (diff)
downloadsdl_core-feature/external_policy_manager.tar.gz
Updated README and included messages in start script for clarityfeature/external_policy_manager
-rw-r--r--README.md7
-rw-r--r--src/appMain/start_external_proprietary.sh5
2 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index ee1d4fc57b..f7a0f6763f 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Once SDL Core is compiled and installed you can start it from the executable in
```
%cd bin/
-%LD_LIBRARY_PATH=. ./smartDeviceLinkCore
+%./start.sh
```
## Start WEB HMI
@@ -73,6 +73,11 @@ The dependencies for SDL Core vary based on the configuration. You can change SD
|Testing framework|Needed to support running unit tests|libgtest-dev|
|Cmake|Needed to configure SDL prior to compilation|cmake|
+#### Sample Policy Manager
+The included sample policy manager (for use with `EXTERNAL_PROPRIETARY` policy mode) requires the following packages:
+ - python-pip
+ - python-dev
+
### Known Dependency Issues
* log4cxx - We know that the version of log4cxx on a linux machine can conflict with the one used, which is why it is provided in the repository. To avoid the conflict, we recommend removing liblog4cxx*.
* cmake - on some versions of linux, the included cmake package doesn't have the right version. If apt-get is your package manager, you can find the correct version using
diff --git a/src/appMain/start_external_proprietary.sh b/src/appMain/start_external_proprietary.sh
index 1a0a350fe6..15ee2ecae5 100644
--- a/src/appMain/start_external_proprietary.sh
+++ b/src/appMain/start_external_proprietary.sh
@@ -1,9 +1,11 @@
#!/bin/bash
-pip list | grep -F tornado
+pip list | grep -F tornado > /dev/null
if [ $? -eq 1 ]
then
+ echo "Installing tornado python package"
sudo pip install tornado
fi
+echo "Starting Policy Manager"
python sample_policy_manager.py --pack_port 8088 --unpack_port 8089 --add_http_header --encryption &
POLICY_MANAGER=$!
@@ -15,4 +17,5 @@ function ctrl_c() {
kill -9 $POLICY_MANAGER
}
+echo "Starting SmartDeviceLinkCore"
LD_LIBRARY_PATH=. ./smartDeviceLinkCore