diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config.cmake | 2 | ||||
-rw-r--r-- | cmake/genivi.audiomanager.service | 34 |
2 files changed, 36 insertions, 0 deletions
diff --git a/cmake/config.cmake b/cmake/config.cmake index c492276..4e65e3d 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -7,6 +7,8 @@ #cmakedefine WITH_DLT #cmakedefine WITH_TELNET #cmakedefine GLIB_DBUS_TYPES_TOLERANT +#cmakedefine WITH_SYSTEMD_WATCHDOG +#cmakedefine SYSTEMD_FOUND #cmakedefine DEFAULT_PLUGIN_COMMAND_DIR "@DEFAULT_PLUGIN_COMMAND_DIR@" #cmakedefine DEFAULT_PLUGIN_ROUTING_DIR "@DEFAULT_PLUGIN_ROUTING_DIR@" diff --git a/cmake/genivi.audiomanager.service b/cmake/genivi.audiomanager.service new file mode 100644 index 0000000..e1e2d01 --- /dev/null +++ b/cmake/genivi.audiomanager.service @@ -0,0 +1,34 @@ +# Copyright (C) 2012, BMW AG +# +# This file is part of GENIVI Project AudioManager. +# +# Contributions are licensed to the GENIVI Alliance under one or more +# Contribution License Agreements. +# +# copyright +# 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/. +# +# author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012 +# +# For further information see http://www.genivi.org/. +# + +# This is a sample unit file that utilized the watchdog functionality of the AudioManager. +# If the time WatchdogSec equals 0, no watchdog function will be used. + + +[Unit] +Description=The GENIVI AudioManager + +[Service] +#Type=notify +User=christian +ExecStart=/home/christian/workspace/AudioManager/bin/AudioManager +Restart=always +WatchdogSec=2 +NotifyAccess=main + +[Install] +WantedBy=multi-user.target |