'Terminate the daemon process specified in the current PID file.'

def _terminate_daemon_process(self):

    pid = self.pidfile.read_pid()
    try:
        os.kill(pid, signal.SIGTERM)
    except OSError as exc:
        raise DaemonRunnerStopFailureError(('Failed    to    terminate    %(pid)d:    %(exc)s' % vars()))
