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

Mantas Mikulėnas grawity at gmail.com
Mon Jun 5 08:15:28 UTC 2023


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 <daggs at 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?
>
> Thanks,
>
> Dagg
>


-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230605/97cb5033/attachment.htm>


More information about the systemd-devel mailing list