From: Kay Sievers Date: Thu, 24 Jun 2010 23:31:57 +0000 (+0200) Subject: add systemd service files X-Git-Tag: 174~432 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43fefbf6f1c528947a77643582bcc34cf3538b2d;p=systemd add systemd service files --- 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 +