'@return: human-readable description of exit state
@rtype: str'

def get_exit_description(self):

    if (self.exit_code is not None):
        if self.exit_code:
            if self.log_dir:
                return ('process    has    died    [pid    %s,    exit    code    %s].\nlog    files:    %s*.log' % (self.pid, self.exit_code, os.path.join(self.log_dir, self.name)))
            else:
                return ('process    has    died    [pid    %s,    exit    code    %s]' % (self.pid, self.exit_code))
        elif self.log_dir:
            return ('process    has    finished    cleanly.\nlog    file:    %s*.log' % os.path.join(self.log_dir, self.name))
        else:
            return 'process    has    finished    cleanly'
    else:
        return 'process    has    died'
