]> err.no Git - systemd/commitdiff
add systemd service files
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 24 Jun 2010 23:31:57 +0000 (01:31 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 24 Jun 2010 23:31:57 +0000 (01:31 +0200)
init/udev-retry.service [new file with mode: 0644]
init/udev-settle.service [new file with mode: 0644]
init/udev.service [new file with mode: 0644]

diff --git a/init/udev-retry.service b/init/udev-retry.service
new file mode 100644 (file)
index 0000000..0792875
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=re-trigger failed events after filesystems are available
+After=local-fs.target
+
+[Service]
+Type=finish
+ValidNoProcess=yes
+ExecStart=/sbin/udevadm trigger --type=failed
+
+[Install]
+WantedBy=sysinit.target
+Also=udev.service
+Also=udev-settle.service
diff --git a/init/udev-settle.service b/init/udev-settle.service
new file mode 100644 (file)
index 0000000..3c73a96
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=wait until full initialization
+After=udev.service
+
+[Service]
+Type=finish
+ValidNoProcess=yes
+ExecStart=/sbin/udevadm settle
+
+[Install]
+WantedBy=sysinit.target
+Also=udev.service
+Also=udev-retry.service
diff --git a/init/udev.service b/init/udev.service
new file mode 100644 (file)
index 0000000..f6824a2
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=/dev and kernel device manager
+Before=sysinit.target
+
+[Service]
+Type=notify
+ExecStart=/sbin/udevd
+ExecStartPost=/sbin/udevadm trigger --type=subsystems --action=add
+ExecStartPost=/sbin/udevadm trigger --type=devices --action=add
+
+[Install]
+WantedBy=sysinit.target
+Also=udev-settle.service
+Also=udev-retry.service
+