extend examples a bit

This commit is contained in:
Lennart Poettering 2010-01-27 06:21:25 +01:00
parent ceee3d8285
commit 836698b90b
5 changed files with 21 additions and 0 deletions

5
test1/exec-demo.service Normal file
View File

@ -0,0 +1,5 @@
[Meta]
Description=Simple Execution Demo
[Service]
ExecStart=/bin/ls

8
test1/fifo-demo.service Normal file
View File

@ -0,0 +1,8 @@
[Meta]
Description=FIFO Activation Demo Service
[Service]
ExecStartPre=/bin/echo "Wow, es geht los!"
#ExecStart=/bin/bash -c 'read a <&3 ; echo "GOT: $a"'
ExecStart=/bin/bash -c 'cat <&3'
Type=simple

6
test1/fifo-demo.socket Normal file
View File

@ -0,0 +1,6 @@
[Meta]
Description=FIFO Activation Demo Socket
[Socket]
ListenFIFO=/tmp/systemd-fifo-demo
ExecStartPost=/bin/echo "OK, we're ready, now write something to /tmp/systemd-fifo-demo"

View File

@ -0,0 +1 @@
../exec-demo.service

View File

@ -0,0 +1 @@
../fifo-demo.socket