Sometimes you want a command to be automatically executed as soon as a certain file changes. There is a small tool called entr, which helps with that.
Sometimes you want a command to be automatically executed as soon as a certain file changes. There is a small tool called entr, which helps with that.
That’s what a systemd.path unit accomplishes, too. It watches a path, and if that file/directory changes, it starts its accompanying systemd.service.