Simple daemon to keep track of changes on a file. Changes being access, modify and delete. Can be used, for example, to monitor external server log file to see when someone logs into the server.
Run simply with make:
make all On Ubuntu 24.04 LTS you might need to install the notification libary for
the header file: sudo apt install libnotify-dev.
After running with ./watchcatd <FILE_PATH> (you can try .watchcatd src/test.txt for instance), it will start a daemon.
To kill it, you will have to find the process and kill it. You can use the
following command to get PID ps -ef | grep watchcatd and then
kill -2 <PID> to kill it. Make sure to use SIGINT (-2) as it handles
daemon cleanup.