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

def _stop(self):

    if (not self.pidfile.is_locked()):
        pidfile_path = self.pidfile.path
        raise DaemonRunnerStopFailureError(('PID    file    %(pidfile_path)r    not    locked' % vars()))
    if is_pidfile_stale(self.pidfile):
        self.pidfile.break_lock()
    else:
        self._terminate_daemon_process()
