mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
extend examples a bit
This commit is contained in:
parent
ceee3d8285
commit
836698b90b
5
test1/exec-demo.service
Normal file
5
test1/exec-demo.service
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[Meta]
|
||||||
|
Description=Simple Execution Demo
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/ls
|
8
test1/fifo-demo.service
Normal file
8
test1/fifo-demo.service
Normal 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
6
test1/fifo-demo.socket
Normal 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"
|
1
test1/multiuser.target.wants/exec-demo.service
Symbolic link
1
test1/multiuser.target.wants/exec-demo.service
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../exec-demo.service
|
1
test1/multiuser.target.wants/fifo-demo.socket
Symbolic link
1
test1/multiuser.target.wants/fifo-demo.socket
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../fifo-demo.socket
|
Loading…
Reference in New Issue
Block a user