'Display status of server
:param: pids, if not supplied pids will be populated automatically
:param: number, if supplied will only lookup the nth server
:returns: 1 if server is not running, 0 otherwise'

def status(self, pids=None, **kwargs):

    if (pids is None):
        pids = self.get_running_pids(**kwargs)
    if (not pids):
        number = kwargs.get('number', 0)
        if number:
            kwargs['quiet'] = True
            conf_files = self.conf_files(**kwargs)
            if conf_files:
                print((_('%(server)s    #%(number)d    not    running    (%(conf)s)') % {'server': self.server, 'number': number, 'conf': conf_files[0]}))
        else:
            print((_('No    %s    running') % self.server))
        return 1
    for (pid, pid_file) in pids.items():
        conf_file = self.get_conf_file_name(pid_file)
        print((_('%(server)s    running    (%(pid)s    -    %(conf)s)') % {'server': self.server, 'pid': pid, 'conf': conf_file}))
    return 0
