If you are on Linux, how about inotify / inotifywait ?
It is quite simple and has some nice examples in the manual.
With minimal change a manual example can serve your point.
Can also be implemented in various programming languages using the API.
So perhaps instead of restarting the app, it can be changed or one should say fixed
Hope that helps
Regards
Peasant.