summaryrefslogtreecommitdiffstats
path: root/dev-tools
diff options
context:
space:
mode:
authortorben2016-03-29 17:40:34 +0200
committertorben2016-03-29 17:40:34 +0200
commita0ee9010a3ca37d40b546be7e8271f96f7baa130 (patch)
treea2f19590e20dff861d965409222c48f8e8d1daa6 /dev-tools
parentUpdate dracut version. Fix ip append. (diff)
downloadsystemd-init-a0ee9010a3ca37d40b546be7e8271f96f7baa130.tar.gz
systemd-init-a0ee9010a3ca37d40b546be7e8271f96f7baa130.tar.xz
systemd-init-a0ee9010a3ca37d40b546be7e8271f96f7baa130.zip
Fix.
Diffstat (limited to 'dev-tools')
-rwxr-xr-xdev-tools/exampleDracutModule/module-setup.sh2
-rw-r--r--dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service (renamed from dev-tools/exampleDracutModule/example.service)0
-rw-r--r--dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service10
3 files changed, 11 insertions, 1 deletions
diff --git a/dev-tools/exampleDracutModule/module-setup.sh b/dev-tools/exampleDracutModule/module-setup.sh
index af9bda6c..8a7d0e07 100755
--- a/dev-tools/exampleDracutModule/module-setup.sh
+++ b/dev-tools/exampleDracutModule/module-setup.sh
@@ -41,5 +41,5 @@ install() {
`install`
'
inst_hook pre-pivot 00 "$moddir/apply-package.sh"
- inst_multiple tar
+ inst_multiple tar wget
}
diff --git a/dev-tools/exampleDracutModule/example.service b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service
index 83310c1d..83310c1d 100644
--- a/dev-tools/exampleDracutModule/example.service
+++ b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service
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'