inotify | while spawns a subshell for the tail of the pipeline, so two bash processes (the script itself and the while-loop subshell) showed up under /usr/libexec/udev/journal-relay in ps aux. Enable lastpipe so the while loop runs in the main shell — ps now shows one bash plus the inotify child, matching a simple udev helper.
9.8 KiB
Executable File
9.8 KiB
Executable File