Linux exec notify based on http://users.suse.com/~krahmer/exec-notify.c