summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/systemd/templates
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/systemd/templates')
-rw-r--r--test/integration/targets/systemd/templates/dummy.service11
-rw-r--r--test/integration/targets/systemd/templates/dummy.socket8
-rw-r--r--test/integration/targets/systemd/templates/sleeper@.service8
3 files changed, 27 insertions, 0 deletions
diff --git a/test/integration/targets/systemd/templates/dummy.service b/test/integration/targets/systemd/templates/dummy.service
new file mode 100644
index 0000000..f38dce1
--- /dev/null
+++ b/test/integration/targets/systemd/templates/dummy.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Dummy Server
+Requires=dummy.socket
+Documentation=dummy
+
+[Service]
+ExecStart=/bin/yes
+StandardInput=socket
+
+[Install]
+Also=dummy.socket
diff --git a/test/integration/targets/systemd/templates/dummy.socket b/test/integration/targets/systemd/templates/dummy.socket
new file mode 100644
index 0000000..f23bf9b
--- /dev/null
+++ b/test/integration/targets/systemd/templates/dummy.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=Dummy Server Activation Socket
+
+[Socket]
+ListenDatagram=69
+
+[Install]
+WantedBy=sockets.target \ No newline at end of file
diff --git a/test/integration/targets/systemd/templates/sleeper@.service b/test/integration/targets/systemd/templates/sleeper@.service
new file mode 100644
index 0000000..8b47982
--- /dev/null
+++ b/test/integration/targets/systemd/templates/sleeper@.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Basic service to use as a template
+
+[Service]
+ExecStart={{ sleep_bin_path }} %i
+
+[Install]
+WantedBy=multi-user.target