Commit 763b3953 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Added "Connection status file" and "Connection status temp file".

(read_configuration): Handle them.  (Bug 706).
parent c5263231
/*
* $Id: server-config.c,v 0.77 2002/08/11 09:36:35 ceder Exp $
* $Id: server-config.c,v 0.78 2002/08/16 00:24:43 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -160,6 +160,14 @@ static const struct parameter parameters[] = {
assign_string, unassign_string, 0, 1, "etc/status",
&param.status_file},
{"Connection status file",
assign_string, unassign_string, 0, 1, "etc/connections.txt",
&param.connection_status_file},
{"Connection status temp file",
assign_string, unassign_string, 0, 1, "etc/connections.tmp",
&param.connection_status_file_tmp},
/* Where to dump core. */
{"Core directory",
......@@ -482,6 +490,8 @@ read_configuration(const char *conf_file)
assert(param.pid_name != NULL);
assert(param.memuse_name != NULL);
assert(param.logfile_name != NULL);
assert(param.connection_status_file != NULL);
assert(param.connection_status_file_tmp != NULL);
assert(param.aux_def_file != NULL);
assert(param.status_file != NULL);
assert(param.core_dir != NULL);
......@@ -507,6 +517,8 @@ read_configuration(const char *conf_file)
add_prefix(&param.pid_name);
add_prefix(&param.memuse_name);
add_prefix(&param.logfile_name);
add_prefix(&param.connection_status_file);
add_prefix(&param.connection_status_file_tmp);
add_prefix(&param.aux_def_file);
add_prefix(&param.status_file);
add_prefix(&param.core_dir);
......@@ -526,6 +538,8 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.pid_name);
err |= check_abs_path(&param.memuse_name);
err |= check_abs_path(&param.logfile_name);
err |= check_abs_path(&param.connection_status_file);
err |= check_abs_path(&param.connection_status_file_tmp);
err |= check_abs_path(&param.aux_def_file);
err |= check_abs_path(&param.status_file);
err |= check_abs_path(&param.core_dir);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment