def get_daemon_config_filename(ctype):
        try:
            return environ['MODULE_ULTRA_DAEMON_CONFIG']
        except KeyError:
            config_dir = ModuleUltraConfig.getConfigDir()
            config_filename = join(config_dir, 'daemon_config.yaml')
            if isfile(config_filename):
                return config_filename
        assert False, "No daemon config found"