From 43fefbf6f1c528947a77643582bcc34cf3538b2d Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 25 Jun 2010 01:31:57 +0200 Subject: [PATCH] add systemd service files --- init/udev-retry.service | 13 +++++++++++++ init/udev-settle.service | 13 +++++++++++++ init/udev.service | 15 +++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 init/udev-retry.service create mode 100644 init/udev-settle.service create mode 100644 init/udev.service diff --git a/init/udev-retry.service b/init/udev-retry.service new file mode 100644 index 00000000..07928751 --- /dev/null +++ b/init/udev-retry.service @@ -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 index 00000000..3c73a96d --- /dev/null +++ b/init/udev-settle.service @@ -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 index 00000000..f6824a20 --- /dev/null +++ b/init/udev.service @@ -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 + -- 2.39.5