'If C{self._kill} is true, attempt to kill a running instance of the
application.'

def killIfRequested(self):

    pidFile = self._pidFile
    if self._kill:
        if (pidFile is nonePIDFile):
            exit(ExitStatus.EX_USAGE, 'No    PID    file    specified.')
            return
        try:
            pid = pidFile.read()
        except EnvironmentError:
            exit(ExitStatus.EX_IOERR, 'Unable    to    read    PID    file.')
            return
        except InvalidPIDFileError:
            exit(ExitStatus.EX_DATAERR, 'Invalid    PID    file.')
            return
        self.startLogging()
        self._log.info('Terminating    process:    {pid}', pid=pid)
        kill(pid, SIGTERM)
        exit(ExitStatus.EX_OK)
        return
