Registration of TAG+="systemd" udev rules?

Michael Biebl biebl at debian.org
Sun May 10 14:39:30 BST 2015


Am 10.05.2015 um 15:37 schrieb Michael Biebl:
> Am 10.05.2015 um 14:46 schrieb Ian Campbell:
>> Hello,
>>
>> In adding systemd unit support to the qcontrol package (#781886) I
>> needed to add a udev rule (60-qcontrol.rules):
>>         KERNELS=="gpio-keys", SUBSYSTEMS=="platform", DRIVERS=="gpio-keys", TAG+="systemd"
>>
>> In order to tag /dev/input/by-path/platform-gpio-keys-event for systemd,
>> so that the dev-input-by\x2dpath-platform\x2dgpio\x2dkeys
>> \x2devent.device unit works correctly and can be depended on by qcontrol.
> 
> That sounds wrong. Why would you want to do that?
> 
> If you want to start a service if hardware shows up, use SYSTEMD_WANTS
> in the rules file.
> If you want to stop the service if the hardware goes away, use BindsTo=
> in the service file.


Aside from what I already said in

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781886#35

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150510/65c3e9e2/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list