Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Services asked for by UDEV do not get triggered #7109
Comments
|
is the dependency from the device unit onto the service unit shown in the "systemctl show" output of the device unit? |
poettering
added
needs-reporter-feedback
pid1
udev
labels
Oct 23, 2017
tillkamppeter
commented
Oct 23, 2017
|
Which is the device unit in my case? And which is the service unit? |
tillkamppeter
commented
Oct 24, 2017
|
Attached: Output of
|
tillkamppeter
commented
Oct 24, 2017
|
Found the device unit name by some tinkering:
|
|
So, the relevant line in the "systemctl show" output is this one:
Which doesn't really match what you are expecting, right? Because that is |
tillkamppeter
commented
Oct 24, 2017
|
And I got the above result with the corrected 70-printers.rules file:
See the
at the end of the first rule. |
|
btw, you really should use systemd-escape's |
tillkamppeter
commented
Oct 25, 2017
|
I tried adding
As this also removes the leading slash from the path inserted in the service name I counteract this by adding a slash at the appropriate place in the udev-configure-printer command line in
Result is the same. Service does not start when plugging the printer but with printer plugged one can start it manually with Problem is still with the escaping and unescaping.
(note that service name has changed slightly, no
Relevant line:
|
|
Use |
tillkamppeter
commented
Oct 26, 2017
|
|
added a commit
to poettering/systemd
that referenced
this issue
Oct 26, 2017
tillkamppeter
commented
Oct 26, 2017
|
I have applied the patch now and tried again, without success. The
The
In this file I also tried
With
I get
and in
This means that udev-configure-printer gets called but the backslash gets lost somewhere and so the unescaping does not work. |
lulandco
commented
Nov 5, 2017
•
|
Hi, |
added a commit
to poettering/systemd
that referenced
this issue
Nov 9, 2017
added a commit
to poettering/systemd
that referenced
this issue
Nov 10, 2017
added a commit
to poettering/systemd
that referenced
this issue
Nov 10, 2017
added a commit
to poettering/systemd
that referenced
this issue
Nov 10, 2017
tillkamppeter
commented
Nov 10, 2017
|
@poettering, what do you want with the patches 2460091 and |
tillkamppeter
commented
Nov 10, 2017
•
reddevillg
commented
Dec 5, 2017
|
Anything news on this? i found the device units is still exist after printer unplugged
but there is no 2-1.2 actually
|
tillkamppeter commentedOct 16, 2017
Submission type
systemd version the issue has been seen with
Used distribution
In case of bug report: Expected behaviour you didn't see
In case of bug report: Unexpected behaviour you saw
In case of bug report: Steps to reproduce the problem
Please see all files, commands, configurations, and discussion up to now in the following Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1721839
Especially note that the first assumption was a character escaping problem but fixing the UDEV rules file does not solve the problem. The problem stays as it is.
I will not copy all files and comments to here, see the Ubuntu bug report for them.