-/* $Id: cache_cf.cc,v 1.50 1996/04/16 22:52:04 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.51 1996/04/16 23:05:44 wessels Exp $ */
/* DEBUG: Section 3 cache_cf: Configuration file parsing */
intlist *connect_port_list = &https;
-
-ip_acl *proxy_ip_acl = NULL;
-ip_acl *accel_ip_acl = NULL;
-ip_acl *manager_ip_acl = NULL;
ip_acl *local_ip_list = NULL;
int zap_disk_store = 0; /* off, try to rebuild from disk */
int single_parent_bypass = 0;
int DnsPositiveTtl = DefaultPositiveDnsTtl;
char *DefaultSwapDir = DEFAULT_SWAP_DIR;
-char *config_file = xstrdup(DEFAULT_CONFIG_FILE);
+char *DefaultConfigFile = DEFAULT_CONFIG_FILE;
+char *ConfigFile = NULL /* the whole thing */
char *cfg_filename = NULL; /* just the last part */
char w_space[] = " \t\n";
printf(" For this run, however, %s will use %d minutes for clean_rate.\n", appname, (int) (getCleanRate() / 60));
fflush(stdout); /* print message */
}
- if (accel_ip_acl == NULL)
- accel_ip_acl = proxy_ip_acl;
if (getDnsChildren() < 1) {
printf("WARNING: dns_children was set to a bad value: %d\n",
-/* $Id: main.cc,v 1.39 1996/04/16 20:31:22 wessels Exp $ */
+/* $Id: main.cc,v 1.40 1996/04/16 23:05:44 wessels Exp $ */
/* DEBUG: Section 1 main: startup and main loop */
opt_unlink_on_reload = 1;
break;
case 'f':
- xfree(config_file);
- config_file = xstrdup(optarg);
+ xfree(ConfigFile);
+ ConfigFile = xstrdup(optarg);
break;
case 'a':
asciiPortNumOverride = atoi(optarg);
/* Already called serverConnectionsClose and ipcacheShutdownServers() */
neighborsDestroy();
- parseConfigFile(config_file);
+ parseConfigFile(ConfigFile);
_db_init(getCacheLogFile());
neighbors_init();
ipcacheOpenServers();
signal(SIGPIPE, SIG_IGN);
signal(SIGCHLD, sig_child);
- parseConfigFile(config_file);
+ if (ConfigFile == NULL)
+ ConfigFile = xstrdup(DefaultConfigFile);
+ parseConfigFile(ConfigFile);
if (asciiPortNumOverride > 0)
setAsciiPortNum(asciiPortNumOverride);
-/* $Id: stat.cc,v 1.27 1996/04/16 16:35:31 wessels Exp $ */
+/* $Id: stat.cc,v 1.28 1996/04/16 23:05:43 wessels Exp $ */
/*
* DEBUG: Section 18 stat
StoreEntry *sentry;
{
squid_read_data_t *data;
- extern char *config_file;
data = (squid_read_data_t *) xmalloc(sizeof(squid_read_data_t));
memset(data, '\0', sizeof(squid_read_data_t));
data->sentry = sentry;
- data->fd = file_open((char *) config_file, NULL, O_RDONLY);
+ data->fd = file_open((char *) ConfigFile, NULL, O_RDONLY);
storeAppend(sentry, open_bracket, (int) strlen(open_bracket));
file_walk(data->fd, (FILE_WALK_HD) squidReadEndHandler, (void *) data,
(FILE_WALK_LHD) squidReadHandler, (void *) data);