<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - udevd have no measure to avoid exiting before all jobs are done"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90051">90051</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>udevd have no measure to avoid exiting before all jobs are done
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tom.ty89@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=115114" name="attach_115114" title="Shell script to reproduce the problem">attachment 115114</a> <a href="attachment.cgi?id=115114&action=edit" title="Shell script to reproduce the problem">[details]</a></span>
Shell script to reproduce the problem
For example I want to get the following udev rule applied:
ATTR{devpath}=="13", ATTR{power/wakeup}="enabled"
If you run udevd and udevadm trigger in a script, like this one:
<a href="https://projects.archlinux.org/svntogit/packages.git/tree/trunk/initcpio-hook-udev?h=packages/systemd">https://projects.archlinux.org/svntogit/packages.git/tree/trunk/initcpio-hook-udev?h=packages/systemd</a>
you could notice that udevd is not guaranteed to exit after it finishes its job
despite all possible timeout parameters in different commands
(udevd/control/settle)
In the case of services, if you stop the udevd service soon after the trigger
service, it will wait for its timeout (30s by default) by doing nothing,
leaving the job undone.
Attached is a script to reproduce the problem. By toggling `sleep 1` you shall
see the difference.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>