From 071830ff32351c19343ff1f0343c13d5c2b69250 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Jan 2010 02:06:20 +0100 Subject: implement proper logging for services --- test1/exec-demo.service | 4 +++- test1/systemd-logger.socket | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test1') diff --git a/test1/exec-demo.service b/test1/exec-demo.service index ea40b1fecf..b772518e3e 100644 --- a/test1/exec-demo.service +++ b/test1/exec-demo.service @@ -2,4 +2,6 @@ Description=Simple Execution Demo [Service] -ExecStart=/bin/ls +ExecStart=/bin/cat /etc/hosts +Type=simple +Output=syslog diff --git a/test1/systemd-logger.socket b/test1/systemd-logger.socket index a013067ab2..ae0c81a91e 100644 --- a/test1/systemd-logger.socket +++ b/test1/systemd-logger.socket @@ -2,6 +2,6 @@ Description=systemd Logging Socket [Socket] -ExecStartPre=/bin/rm /tmp/systemd-logger +ExecStartPre=/bin/rm -f /tmp/systemd-logger ListenStream==/systemd/logger ListenStream=/tmp/systemd-logger -- cgit v1.2.3-54-g00ecf