I'm trying to use a systemd path + service to trigger a python script when a file changes.
I'm finding that the script is triggered on startup, independent of when I change the file.
Here's the snippet of my .path file:
currently while I'm testing, monitor.service simply triggers a script that writes to a log file with a timestamp. here's a snippet of the log file:
14:26:40 Friday September 3, 2021 file modified
and when I do stat /home/pi/network/trigger.txt,
Access: 2021-07-14 17:07:42.871258883 -0400 Modify: 2021-08-24 16:53:00.879999930 -0400 Change: 2021-08-24 16:53:00.879999930 -0400
Clearly then, the file hasn't been modified, yet the .path unit triggers on startup regardless. What's going on here?