diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-27 06:21:25 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-27 06:21:25 +0100 |
commit | 836698b90be5ce5e8aae86f39d03614260ffde5d (patch) | |
tree | b49d8026a533fc2d785483c107a495e8dcc77912 | |
parent | ceee3d82853a198884795e5d815b895468212b24 (diff) |
extend examples a bit
-rw-r--r-- | test1/exec-demo.service | 5 | ||||
-rw-r--r-- | test1/fifo-demo.service | 8 | ||||
-rw-r--r-- | test1/fifo-demo.socket | 6 | ||||
l--------- | test1/multiuser.target.wants/exec-demo.service | 1 | ||||
l--------- | test1/multiuser.target.wants/fifo-demo.socket | 1 |
5 files changed, 21 insertions, 0 deletions
diff --git a/test1/exec-demo.service b/test1/exec-demo.service new file mode 100644 index 0000000000..ea40b1fecf --- /dev/null +++ b/test1/exec-demo.service @@ -0,0 +1,5 @@ +[Meta] +Description=Simple Execution Demo + +[Service] +ExecStart=/bin/ls diff --git a/test1/fifo-demo.service b/test1/fifo-demo.service new file mode 100644 index 0000000000..51b19961fa --- /dev/null +++ b/test1/fifo-demo.service @@ -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 diff --git a/test1/fifo-demo.socket b/test1/fifo-demo.socket new file mode 100644 index 0000000000..75ce7a6999 --- /dev/null +++ b/test1/fifo-demo.socket @@ -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" diff --git a/test1/multiuser.target.wants/exec-demo.service b/test1/multiuser.target.wants/exec-demo.service new file mode 120000 index 0000000000..0ec1e35824 --- /dev/null +++ b/test1/multiuser.target.wants/exec-demo.service @@ -0,0 +1 @@ +../exec-demo.service
\ No newline at end of file diff --git a/test1/multiuser.target.wants/fifo-demo.socket b/test1/multiuser.target.wants/fifo-demo.socket new file mode 120000 index 0000000000..4c3d621e90 --- /dev/null +++ b/test1/multiuser.target.wants/fifo-demo.socket @@ -0,0 +1 @@ +../fifo-demo.socket
\ No newline at end of file |