summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorChristian Muck <christian.muck@bmw.de>2011-09-05 16:19:48 +0200
committerChristian Muck <christian.muck@bmw.de>2011-09-05 16:19:48 +0200
commitca77a002e8012b82068f959c95fb1a57f7d41d6b (patch)
tree371d727017b4259c2f7ba5969b689640e88ba90c /systemd
parentd818704990324fbacd0c7cfb92ba1e7e73e59ab0 (diff)
downloadDLT-daemon-ca77a002e8012b82068f959c95fb1a57f7d41d6b.tar.gz
[GSW-16] Systemd configuration for syslog to DLT dapater
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/dlt-syslog.service.cmake18
-rwxr-xr-xsystemd/dlt.service.cmake (renamed from systemd/dlt.service)3
2 files changed, 20 insertions, 1 deletions
diff --git a/systemd/dlt-syslog.service.cmake b/systemd/dlt-syslog.service.cmake
new file mode 100755
index 0000000..6f4db32
--- /dev/null
+++ b/systemd/dlt-syslog.service.cmake
@@ -0,0 +1,18 @@
+# This file is for starting dlt-adaptor-udp
+#
+# For more informations about starting options of dlt-daemon use the command "dlt-adaptor-udp -h".
+#
+# basic.target A special target unit covering early boot-up.
+# Usually this should pull-in all sockets, mount points, swap devices and
+# other basic initialization necessary for the general purpose daemons.
+# Most normal daemons should have dependencies of type After and Requires on this unit
+
+[Unit]
+Description=DLT Syslog Adapter
+
+[Service]
+ExecStart=/usr/local/bin/dlt-adaptor-udp -a @DLT_SYSLOG_APPID@ -c @DLT_SYSLOG_CTID@ -p @DLT_SYSLOG_PORT@
+# Restart=always
+
+[Install]
+WantedBy=basic.target
diff --git a/systemd/dlt.service b/systemd/dlt.service.cmake
index 5bee126..357366a 100755
--- a/systemd/dlt.service
+++ b/systemd/dlt.service.cmake
@@ -5,6 +5,7 @@
#
# Multi-user.target is a special target unit for setting up a multi-user system (non-graphical).
# For more details about the multi-user.target see systemd.special(7).
+
[Unit]
Description=DLT Daemon for logging and tracing
@@ -13,4 +14,4 @@ ExecStart=/usr/local/bin/dlt-daemon -r
#Restart=always
[Install]
-WantedBy=multi-user.target \ No newline at end of file
+WantedBy=multi-user.target