summaryrefslogtreecommitdiff
path: root/test1
diff options
context:
space:
mode:
Diffstat (limited to 'test1')
-rw-r--r--test1/exec-demo.service5
-rw-r--r--test1/fifo-demo.service8
-rw-r--r--test1/fifo-demo.socket6
l---------test1/multiuser.target.wants/exec-demo.service1
l---------test1/multiuser.target.wants/fifo-demo.socket1
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