- pid = file(path.join(self._pid_dir, pid_filename )).read().strip()
- os.kill(int(pid), SIGTERM)
- except (IOError, OSError):
- # TODO log
- pass
+ log.debug(u'VrrpHandler._service_stop: getting pid from %r',
+ pid_filename)
+ pid = file(path.join(self._pid_dir, pid_filename )).read()
+ pid = int(pid.strip())
+ log.debug(u'VrrpHandler._service_stop: killing pid %r', pid)
+ os.kill(pid, SIGTERM)
+ except (IOError, OSError), e:
+ log.debug(u'VrrpHandler._service_stop: error %r', e)