diff options
author | Christian Muck <christian.muck@bmw.de> | 2012-06-04 09:08:52 +0200 |
---|---|---|
committer | Christian Muck <christian.muck@bmw.de> | 2012-06-13 23:52:51 +0200 |
commit | 85f564f2b4c580bc151d05559e6ed0614919da8a (patch) | |
tree | 96c41c00f70fb5545862cea3e62b26867117e33b /src/daemon | |
parent | de0b686c504886187aa1e8ba4373daeff66283e5 (diff) | |
download | DLT-daemon-85f564f2b4c580bc151d05559e6ed0614919da8a.tar.gz |
[GDLT-90] Implemented systemd watchdog concept in dlt-system
Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/dlt-daemon.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c index 9ef5c6c..57a3d02 100644 --- a/src/daemon/dlt-daemon.c +++ b/src/daemon/dlt-daemon.c @@ -86,12 +86,7 @@ #include "dlt-daemon.h" #include "dlt-daemon_cfg.h" -#if defined(DLT_SYSTEMD_ENABLE) - #if defined(DLT_SYSTEMD_WATCHDOG_ENABLE) - #include <stdio.h> - #include <stdlib.h> - #endif - +#if defined(DLT_SYSTEMD_WATCHDOG_ENABLE) || defined(DLT_SYSTEMD_ENABLE) #include "sd-daemon.h" #endif @@ -119,8 +114,13 @@ static pthread_t dlt_daemon_systemd_watchdog_thread_handle; */ void usage() { + char version[DLT_DAEMON_TEXTBUFSIZE]; + dlt_get_version(version); + + //printf("DLT logging daemon %s %s\n", _DLT_PACKAGE_VERSION, _DLT_PACKAGE_VERSION_STATE); + //printf("Compile options: %s %s %s %s",_DLT_SYSTEMD_ENABLE, _DLT_SYSTEMD_WATCHDOG_ENABLE, _DLT_TEST_ENABLE, _DLT_SHM_ENABLE); + printf(version); printf("Usage: dlt-daemon [options]\n"); - printf("DLT logging daemon %s\n", _DLT_PACKAGE_REVISION); printf("Options:\n"); printf(" -d Daemonize\n"); printf(" -h Usage\n"); |