diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-06-06 12:44:27 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-06-11 14:16:57 +0200 |
commit | e561fd5d5e2564dcb6d5e4358ac7d3b917016ebb (patch) | |
tree | f0388e9af4323f0441c4b578631f68c0a2cc1f80 /systemd | |
parent | 9a91fe28c05c54f7428325b0290a29c28966ae56 (diff) | |
download | DLT-daemon-e561fd5d5e2564dcb6d5e4358ac7d3b917016ebb.tar.gz |
First implementation of DLT DBus adapter.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/CMakeLists.txt | 9 | ||||
-rwxr-xr-x | systemd/dlt-dbus.service.cmake | 32 |
2 files changed, 41 insertions, 0 deletions
diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt index 38ab7c2..a9838e4 100644 --- a/systemd/CMakeLists.txt +++ b/systemd/CMakeLists.txt @@ -32,6 +32,11 @@ if(WITH_SYSTEMD) configure_file(${CMAKE_SOURCE_DIR}/systemd/dlt-system.service.cmake ${PROJECT_BINARY_DIR}/systemd/dlt-system.service) message( STATUS "Configured systemd unit file:dlt-system.service" ) + if(WITH_DLT_DBUS) + configure_file(${CMAKE_SOURCE_DIR}/systemd/dlt-dbus.service.cmake ${PROJECT_BINARY_DIR}/systemd/dlt-dbus.service) + message( STATUS "Configured systemd unit file:dlt-dbus.service" ) + endif(WITH_DLT_DBUS) + configure_file(${CMAKE_SOURCE_DIR}/systemd/dlt-receive.service.cmake ${PROJECT_BINARY_DIR}/systemd/dlt-receive.service) message( STATUS "Configured systemd unit file:dlt-receive.service" ) @@ -50,6 +55,10 @@ if(WITH_SYSTEMD) install(FILES ${PROJECT_BINARY_DIR}/systemd/dlt-system.service DESTINATION ${SYSTEMD_CONFIGURATIONS_FILES_DIR} ) install(FILES ${PROJECT_BINARY_DIR}/systemd/dlt-receive.service DESTINATION ${SYSTEMD_CONFIGURATIONS_FILES_DIR} ) + if(WITH_DLT_DBUS) + install(FILES ${PROJECT_BINARY_DIR}/systemd/dlt-dbus.service DESTINATION ${SYSTEMD_CONFIGURATIONS_FILES_DIR} ) + endif(WITH_DLT_DBUS) + if(WITH_DLT_EXAMPLES) install(FILES ${PROJECT_BINARY_DIR}/systemd/dlt-example-user.service DESTINATION ${SYSTEMD_CONFIGURATIONS_FILES_DIR} ) endif(WITH_DLT_EXAMPLES) diff --git a/systemd/dlt-dbus.service.cmake b/systemd/dlt-dbus.service.cmake new file mode 100755 index 0000000..2727c2d --- /dev/null +++ b/systemd/dlt-dbus.service.cmake @@ -0,0 +1,32 @@ +#######
+# Dlt - Diagnostic Log and Trace
+# @licence make begin@
+#
+# Copyright (C) 2011-2012, BMW AG - Alexander Wenzel <alexander.aw.wenzel@bmw.de>
+#
+# Contributions are licensed to the GENIVI Alliance under one or more
+# Contribution License Agreements.
+#
+# This Source Code Form is subject to the terms of the
+# Mozilla Public License, 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/.
+#
+# @licence end@
+########
+
+[Unit]
+Description=GENIVI DLT DBus. Application to forward DBus messages to DLT.
+Documentation=man:dlt-dbus(1) man:dlt-dbus.conf(5)
+Wants=dlt.service
+
+[Service]
+Type=Simple
+User=root
+ExecStart=@CMAKE_INSTALL_PREFIX@/bin/dlt-dbus
+WatchdogSec=@DLT_WatchdogSec@
+NotifyAccess=main
+LimitCORE=infinity
+
+[Install]
+WantedBy=basic.target
+
|