'Translate pid_file to a corresponding conf_file
:param pid_file: a pid_file for this server, a string
:returns: the conf_file for this pid_file'

def get_conf_file_name(self, pid_file):

    if (self.server in STANDALONE_SERVERS):
        return pid_file.replace(os.path.normpath(self.run_dir), SWIFT_DIR, 1).replace('.pid', '.conf', 1)
    else:
        return pid_file.replace(os.path.normpath(self.run_dir), SWIFT_DIR, 1).replace(self.server, ('%s-server' % self.type), 1).replace('.pid', '.conf', 1)
