Understanding the timeline of execution procd and hotplug script

I am concerned about the race condition between hotplug script and procd service
I want the procd service to be executed after hotplug script.
Need some pointers regarding the timeline of the executions with respect to procd and hotplug scripts

I hope someone from the core team will chime in, but if you wanted to ensure the hotplug script runs first, I'd implement some sort of semaphore, like hotplug script creating a specific file in /tmp/ and then procd script checking if file exists and quitting if it doesn't.

1 Like