Skip to content

Commit

Permalink
cmake: systemd: fix hardcoded user in dlt-dbus.service (Issue COVESA#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Lipka <[email protected]>
  • Loading branch information
Christoph Lipka committed Dec 6, 2018
1 parent f50cd05 commit ea836f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ option(WITH_DLT_TESTS "Set to ON to build src/test binaries"
option(WITH_DLT_UNIT_TESTS "Set to ON to build gtest framework and tests/binaries" OFF)

set(DLT_IPC "FIFO" CACHE STRING "UNIX_SOCKET,FIFO")
set( DLT_USER "genivi" CACHE STRING
"Set user for process not run as root")
set(DLT_USER "genivi" CACHE STRING "Set user for process not run as root")

option(WITH_DLT_CXX11_EXT "Set to ON to build C++11 extensions" OFF)
option(WITH_DLT_COREDUMPHANDLER "EXPERIMENTAL! Set to ON to build src/core_dump_handler binaries. EXPERIMENTAL" OFF)
Expand Down
2 changes: 1 addition & 1 deletion systemd/dlt-dbus.service.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Wants=dlt.service

[Service]
Type=simple
User=root
User=@DLT_USER@
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/dlt-dbus
WatchdogSec=@DLT_WatchdogSec@
NotifyAccess=main
Expand Down

0 comments on commit ea836f6

Please sign in to comment.