Re: [systemd-devel] overriding udev rules

2016-02-28 Thread Andrei Borzenkov


Отправлено с iPhone

> 28 февр. 2016 г., в 15:05, Łukasz Stelmach  написал(а):
> 
> Dnia 28 lutego 2016 12:51:51 CET, "Mantas Mikulėnas"  
> napisał(a):
>> On Sun, Feb 28, 2016 at 12:40 PM, Łukasz Stelmach 
>> wrote:
>> 
>>> Hi,
>>> 
>>> One of the default rules supplied by systemd (v215 in Debian) is
>>> responsible restoring the state of rfkill switches.
>>> 
>>>SUBSYSTEM=="rfkill", TAG+="systemd",
>>> ENV{SYSTEMD_WANTS}+="systemd-rfkill@$name.service"
>>> 
>>> For a reason or two I'd like to override it and not restore the
>> state.
>>> I don't want make a copy of 99-systemd.rules in /etc just to edit one
>>> line. Is there any other reasonable way to prevent the above rule
>> from
>>> being executed?
>> 
>> You can `systemctl mask systemd-rfkill@.service`.
> 
> OK, this is an option, thanks. What if i would like to override the rule and 
> execute the service for some devives?
> 
> 

Untested, but the

ENV{SYSTEMD_WANTS}-="rfkill etc" may work. It should come late enough of course.


> -- 
> Łukasz Stelmach z podróży
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] overriding udev rules

2016-02-28 Thread Łukasz Stelmach
Dnia 28 lutego 2016 12:51:51 CET, "Mantas Mikulėnas"  
napisał(a):
>On Sun, Feb 28, 2016 at 12:40 PM, Łukasz Stelmach 
>wrote:
>
>> Hi,
>>
>> One of the default rules supplied by systemd (v215 in Debian) is
>> responsible restoring the state of rfkill switches.
>>
>> SUBSYSTEM=="rfkill", TAG+="systemd",
>> ENV{SYSTEMD_WANTS}+="systemd-rfkill@$name.service"
>>
>> For a reason or two I'd like to override it and not restore the
>state.
>> I don't want make a copy of 99-systemd.rules in /etc just to edit one
>> line. Is there any other reasonable way to prevent the above rule
>from
>> being executed?
>>
>
>You can `systemctl mask systemd-rfkill@.service`.

OK, this is an option, thanks. What if i would like to override the rule and 
execute the service for some devives?


-- 
Łukasz Stelmach z podróży
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] overriding udev rules

2016-02-28 Thread Mantas Mikulėnas
On Sun, Feb 28, 2016 at 12:40 PM, Łukasz Stelmach  wrote:

> Hi,
>
> One of the default rules supplied by systemd (v215 in Debian) is
> responsible restoring the state of rfkill switches.
>
> SUBSYSTEM=="rfkill", TAG+="systemd",
> ENV{SYSTEMD_WANTS}+="systemd-rfkill@$name.service"
>
> For a reason or two I'd like to override it and not restore the state.
> I don't want make a copy of 99-systemd.rules in /etc just to edit one
> line. Is there any other reasonable way to prevent the above rule from
> being executed?
>

You can `systemctl mask systemd-rfkill@.service`.

-- 
Mantas Mikulėnas 
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] overriding udev rules

2016-02-28 Thread Michał Zegan
symlink it in /etc/udev/rules.d to /dev/null.

W dniu 28.02.2016 o 11:40, Łukasz Stelmach pisze:
> Hi,
> 
> One of the default rules supplied by systemd (v215 in Debian) is
> responsible restoring the state of rfkill switches.
> 
> SUBSYSTEM=="rfkill", TAG+="systemd", 
> ENV{SYSTEMD_WANTS}+="systemd-rfkill@$name.service"
> 
> For a reason or two I'd like to override it and not restore the state.
> I don't want make a copy of 99-systemd.rules in /etc just to edit one
> line. Is there any other reasonable way to prevent the above rule from
> being executed?
> 
> Kind regards,
> 
> 
> 
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
> 



signature.asc
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] overriding udev rules

2016-02-28 Thread Łukasz Stelmach
Hi,

One of the default rules supplied by systemd (v215 in Debian) is
responsible restoring the state of rfkill switches.

SUBSYSTEM=="rfkill", TAG+="systemd", 
ENV{SYSTEMD_WANTS}+="systemd-rfkill@$name.service"

For a reason or two I'd like to override it and not restore the state.
I don't want make a copy of 99-systemd.rules in /etc just to edit one
line. Is there any other reasonable way to prevent the above rule from
being executed?

Kind regards,
-- 
Było mi bardzo miło.  --- Rurku. --- ...
>Łukasz<--- To dobrze, że mnie słuchasz.


pgpmyVDWozbQG.pgp
Description: PGP signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel