Sample Header Ad - 728x90

How is Inotifyd different from inotifywait in term of monitoring a directory and do some post actions?

3 votes
1 answer
3119 views
I need to monitor a directory and do some post actions based on the events happened. I am familiar with inotifywait but since we use docker based on alpine, I was thinking about is there other way to do that. Then I found Inotifyd , according to the document there said "While there are tools designed around inotify (inotify-tools) alpine has a build in tool called inotifyd (part of busybox) to execute a command on file system events." But the problem are, a) according that alpine document setting inotifyd to work seems quite complicated compared to inotifywait b) I can't find many articles about inotifyd. So I get the feeling that it is not widely-used. So can someone with experience of Inotifyd shed some light on this ?
Asked by Qiulang 邱朗 (261 rep)
Jul 1, 2021, 04:17 AM
Last activity: Jul 26, 2025, 03:07 PM