From e561fd5d5e2564dcb6d5e4358ac7d3b917016ebb Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Fri, 6 Jun 2014 12:44:27 +0200 Subject: First implementation of DLT DBus adapter. Signed-off-by: Alexander Wenzel --- systemd/CMakeLists.txt | 9 +++++++++ systemd/dlt-dbus.service.cmake | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 systemd/dlt-dbus.service.cmake (limited to 'systemd') 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 +# +# 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 + -- cgit v1.2.1