Skip to content

PathChangedGlob, PathModifiedGlob #14330

Description

@mikhailnov

There is PathExistsGlob and PathChanged, but there is no PathChangedGlob.
I thought to use PathChangedGlob to start a service when /dev/microem* appears. Pseudo devices /dev/microem* are created by a custom kernel driver when special USB devices are connected. When a device is connected, service must be started. PathModifiedGlob would also be useful.

I do not know if it is easy tro set minoring by a glob or not. Just a feature request.

Activity

  1. added
    RFE 🎁Request for Enhancement, i.e. a feature request
    on Dec 13, 2019
  2. col-panic commented on Sep 19, 2023

    @col-panic

    Any progress on this? The closed button made me first think, that this functionality is already available,
    but it's closed only, because THIS is the duplicate to work on 😕

  3. tblancher commented on Feb 11, 2024

    @tblancher

    I've worked around this by wrapping a systemd unit around an inotifywait script, since inotifywait can work recursively. You can use inotifywait to exclude patterns from matching.

    But it would be nice if PathChangedGlob and PathModifiedGlob existed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁Request for Enhancement, i.e. a feature requestpid1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions