Attach a watcher for jobs
Attach a watcher for jobs

Add a function that can serve as an event handler for inotify
updating a job in the job queue if the corresponding job file
changes. Also attach it to all jobs selected to be run.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>

ganeti-github-testing/ganeti-test-1,grnet/snf-ganeti,andir/ganeti,andir/ganeti,dimara/ganeti,dimara/ganeti,yiannist/ganeti,yiannist/ganeti,bitemyapp/ganeti,andir/ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,mbakke/ganeti,ganeti/ganeti,grnet/snf-ganeti,apyrgio/ganeti,apyrgio/ganeti,mbakke/ganeti,leshchevds/ganeti,ganeti/ganeti,leshchevds/ganeti,onponomarev/ganeti,leshchevds/ganeti,yiannist/ganeti,onponomarev/ganeti,mbakke/ganeti,bitemyapp/ganeti