I need your help - using Inotify I am watching a directory for the changes like create, delete, rename and move. I want these event to be logged in a file and I want to run Inotify as a service.
You need to install
You can add a line to monitor specific directory. The general format is like:
Directory path should be specified first, followed by event mask, and finally the command/script you want to execute. You can read
In your case, you can create a script to log the relevant events.