summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-07-02 15:28:34 -0700
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-07-02 15:28:34 -0700
commit637290b9ce84d96de5f1f95412e62c0b8a201041 (patch)
treed0cb209307999b3fb5981bd468a9f8089f8373b1
parent111bb4ebb447c5d81a110971a1ea800793530740 (diff)
downloadrvi_core-637290b9ce84d96de5f1f95412e62c0b8a201041.tar.gz
release-next: Added chsmack to RVI startup on tizen to enable Tizen xwalk apps to change the vin file
-rw-r--r--rvi_backend.config150
-rw-r--r--scripts/rvi.service1
2 files changed, 1 insertions, 150 deletions
diff --git a/rvi_backend.config b/rvi_backend.config
deleted file mode 100644
index 1bbf72f..0000000
--- a/rvi_backend.config
+++ /dev/null
@@ -1,150 +0,0 @@
-%% -*- erlang -*-
-
-%% Copyright (C) 2014, Jaguar Land Rover
-%%
-%% This program is licensed under the terms and conditions of the
-%% Mozilla Public License, version 2.0. The full text of the
-%% Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
-%%
-%% Configuration file for the (in-vehicle) IVI used by the hvac_demo
-%% See ../hvac_demo/README.md for detai;s
-%%
-
-%% -----------------------------------------------
-%% See vehicle.config file for documentation and hints
-%% -----------------------------------------------
-
-[
- {apps,
- [kernel,
- stdlib,
- sasl,
- {setup, load},
- syntax_tools,
- lager,
- crypto,
- public_key,
- exo,
- compiler,
- ssl,
- asn1,
-
- rvi,
- rvi_common,
- service_discovery,
- service_edge,
- authorize,
- schedule,
- dlink_tcp,
- proto_bert,
- proto_json
- ]},
-
- {env,
- [
- {lager,
- [ { handlers,
- [{lager_console_backend, debug}]
- }
- ]
- },
-
- {rvi,
- [
- { node_address, "38.129.64.31:8807" },
- { node_service_prefix, "jlr.com/backend/"},
-
-
- { routing_rules,
- [
- %% Make sure to have a default if you don't want your message
- %% to error out immediately. With a default the message will
- %% be queued until it times out, waiting for a remote node
- %% to connect and announce that it can handle the targeted service.
- { "",
- [
- { proto_bert_rpc, dlink_tcp_rpc}
- ]
- }
- ]
- },
-
- { components,
- [
- { service_edge,
- %% This is the URL that local services use to connect to
- %% the RVI system. It is also used by
- %% the other components below to send inter-compoonent
- %% JSON-RPC calls to the service edge.
- %%
- %% For this component url and exo_http_opts should always be specified
- %% so that local services have a HTTP port to connect to.
- %%
- %% gen_server can also be specified to enable faster, native erlang
- %% inter compojnent communication.
- %%
- %% The host and address given in URL should route to the port given
- %% in exo_http_opts below.
- %%
- %% The web socket integrates with the rvi.js javascript code
- %% that connects Tizen IVI to the RVI system.
- [ { service_edge_rpc, gen_server,
- [
- { json_rpc_address, { "127.0.0.1", 8801 } },
- { websocket, [ { port, 8808}]}
- ]
- }
- ]
- },
- { service_discovery,
- [ { service_discovery_rpc, gen_server,
- [
- { json_rpc_address, { "127.0.0.1", 8802 }}
- ]
- }
- ]
- },
- { schedule,
- [ { schedule_rpc, json_rpc,
- [
- { json_rpc_address, { "127.0.0.1", 8803 }}
- ]
- }
- ]
- },
- { authorize,
- [ { authorize_rpc, gen_server,
- [
- { json_rpc_address, { "127.0.0.1", 8804 } }
- ]
- }
- ]
- },
- { protocol,
- [ { proto_bert_rpc, gen_server,
- [
- { json_rpc_address, { "127.0.0.1", 8805 } }
- ]
- }
- ]
- },
- { data_link,
- [ { dlink_tcp_rpc, gen_server,
- [
- { json_rpc_address, { "127.0.0.1", 8806 } },
- %% Bert_rpc server specifies the port we should
- %% listen to for incoming connections
- %% from other rvi nodes.
- %% A specific NIC address can also be specified
- %% through the {ip, "192.168.0.1" } tuple.
- { server_opts, [ { port, 8807 }]}
- ]
- }
- ]
- }
- ]
- }
- ]}
-]}
-
-].
diff --git a/scripts/rvi.service b/scripts/rvi.service
index b7d4f64..1220eb9 100644
--- a/scripts/rvi.service
+++ b/scripts/rvi.service
@@ -8,6 +8,7 @@ Environment="HOME=/opt/rvi-0.4.0"
Type=forking
StandardOutput=journal
StandardError=journal
+ExecStartPre=/usr/bin/chsmack --access User /home/app/content/Documents/vin
ExecStartPre=/opt/rvi-0.4.0/erts-5.10.4/bin/epmd -daemon
ExecStart=/bin/sh /opt/rvi-0.4.0/bin/rvi start
ExecStop=/bin/sh /opt/rvi-0.4.0/bin/rvi stop