diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-28 02:06:20 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-28 02:06:20 +0100 |
commit | 071830ff32351c19343ff1f0343c13d5c2b69250 (patch) | |
tree | 9e564b64a8d80ee717b5d5859ac3d56ba350a087 /test1 | |
parent | ce578209aa4e061aa38d3a4727612bb388307bf9 (diff) | |
download | systemd-071830ff32351c19343ff1f0343c13d5c2b69250.tar.gz |
implement proper logging for services
Diffstat (limited to 'test1')
-rw-r--r-- | test1/exec-demo.service | 4 | ||||
-rw-r--r-- | test1/systemd-logger.socket | 2 |
2 files changed, 4 insertions, 2 deletions
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 |