summaryrefslogtreecommitdiffstats
path: root/dev-tools/exampleDracutModule/source
diff options
context:
space:
mode:
authorjandob2016-03-29 19:06:22 +0200
committerjandob2016-03-29 19:06:22 +0200
commit7a14d8932f1f4bba79ba4e7b8d5fe4129788e4ac (patch)
tree0de5de71c12e08e3783bc885fb7c30c4b0346c2b /dev-tools/exampleDracutModule/source
parentadd logging to file functionality (diff)
parentFix. (diff)
downloadsystemd-init-7a14d8932f1f4bba79ba4e7b8d5fe4129788e4ac.tar.gz
systemd-init-7a14d8932f1f4bba79ba4e7b8d5fe4129788e4ac.tar.xz
systemd-init-7a14d8932f1f4bba79ba4e7b8d5fe4129788e4ac.zip
Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init
Diffstat (limited to 'dev-tools/exampleDracutModule/source')
-rw-r--r--dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service10
-rw-r--r--dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service10
2 files changed, 20 insertions, 0 deletions
diff --git a/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service
new file mode 100644
index 00000000..83310c1d
--- /dev/null
+++ b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Simple example service
+After=dracut-pre-mount.service network.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+KillMode=none
+ExecStart=/usr/bin/bash -c '/usr/bin/echo test >/tmp/test-output.txt'
diff --git a/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service
new file mode 100644
index 00000000..83310c1d
--- /dev/null
+++ b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Simple example service
+After=dracut-pre-mount.service network.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+KillMode=none
+ExecStart=/usr/bin/bash -c '/usr/bin/echo test >/tmp/test-output.txt'