MT#6817 add pid_watcher.py

Use inotify in order to monitor the pid change for some services