extend examples a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Jan 2010 05:21:25 +0000 (06:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Jan 2010 05:21:25 +0000 (06:21 +0100)
test1/exec-demo.service [new file with mode: 0644]
test1/fifo-demo.service [new file with mode: 0644]
test1/fifo-demo.socket [new file with mode: 0644]
test1/multiuser.target.wants/exec-demo.service [new symlink]
test1/multiuser.target.wants/fifo-demo.socket [new symlink]

diff --git a/test1/exec-demo.service b/test1/exec-demo.service
new file mode 100644 (file)
index 0000000..ea40b1f
--- /dev/null
@@ -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 (file)
index 0000000..51b1996
--- /dev/null
@@ -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 (file)
index 0000000..75ce7a6
--- /dev/null
@@ -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 (symlink)
index 0000000..0ec1e35
--- /dev/null
@@ -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 (symlink)
index 0000000..4c3d621
--- /dev/null
@@ -0,0 +1 @@
+../fifo-demo.socket
\ No newline at end of file