From 836698b90be5ce5e8aae86f39d03614260ffde5d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Jan 2010 06:21:25 +0100 Subject: [PATCH] extend examples a bit --- test1/exec-demo.service | 5 +++++ test1/fifo-demo.service | 8 ++++++++ test1/fifo-demo.socket | 6 ++++++ test1/multiuser.target.wants/exec-demo.service | 1 + test1/multiuser.target.wants/fifo-demo.socket | 1 + 5 files changed, 21 insertions(+) create mode 100644 test1/exec-demo.service create mode 100644 test1/fifo-demo.service create mode 100644 test1/fifo-demo.socket create mode 120000 test1/multiuser.target.wants/exec-demo.service create mode 120000 test1/multiuser.target.wants/fifo-demo.socket diff --git a/test1/exec-demo.service b/test1/exec-demo.service new file mode 100644 index 00000000000..ea40b1fecf0 --- /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 00000000000..51b19961fa2 --- /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 00000000000..75ce7a6999f --- /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 00000000000..0ec1e35824a --- /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 00000000000..4c3d621e900 --- /dev/null +++ b/test1/multiuser.target.wants/fifo-demo.socket @@ -0,0 +1 @@ +../fifo-demo.socket \ No newline at end of file