Using watchdog as a filemonitor