Re: [systemd-devel] triggering a remove handker manually via cmd

2023-06-05 Thread Mantas Mikulėnas
Technically yes, `udevadm trigger --action=` can be used to trigger rules
for any kind of action including remove (or just writing 'remove' into the
corresponding device's "/sys/.../uevent" file), just keep in mind that this
won't *actually* remove the device...which might result in udev and other
software being a bit confused when a "removed" device continues to exist.
(Normally it's the removal that triggers rules, not the other way around.)

On Mon, Jun 5, 2023 at 8:46 AM daggs  wrote:

> Greetings,
>
> given a rule file which has a add and remove handlers, is there a way to
> manually trigger the remove handler of that file?
>
> Thanks,
>
> Dagg
>


-- 
Mantas Mikulėnas


Re: [systemd-devel] triggering a remove handker manually via cmd

2023-06-05 Thread Lennart Poettering
On Mo, 05.06.23 07:46, daggs (da...@gmx.com) wrote:

> Greetings,
>
> given a rule file which has a add and remove handlers, is there a
> way to manually trigger the remove handler of that file?

I cannot parse this, sorry.

Lennart

--
Lennart Poettering, Berlin


[systemd-devel] triggering a remove handker manually via cmd

2023-06-04 Thread daggs
Greetings,

given a rule file which has a add and remove handlers, is there a way to 
manually trigger the remove handler of that file?

Thanks,

Dagg