Commit 1d34d224 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Added "Status file".

(read_configuration): Handle param.status_file.
parent 69c73176
/*
* $Id: server-config.c,v 0.51 1999/01/13 12:08:39 byers Exp $
* $Id: server-config.c,v 0.52 1999/04/17 00:13:21 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -37,7 +37,7 @@
#endif
static const char *
rcsid = "$Id: server-config.c,v 0.51 1999/01/13 12:08:39 byers Exp $";
rcsid = "$Id: server-config.c,v 0.52 1999/04/17 00:13:21 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -132,6 +132,8 @@ static const struct parameter parameters[] = {
/* Other files. */
{"Aux-item definition file",
assign_string, 0, 1, "etc/aux-items.conf", &param.aux_def_file},
{"Status file",
assign_string, 0, 1, "etc/status", &param.status_file},
/* Where to dump core. */
{"Core directory",
assign_string, 0, 1, "cores", &param.core_dir},
......@@ -384,6 +386,7 @@ read_configuration(const char *conf_file)
assert(param.memuse_name != NULL);
assert(param.logfile_name != NULL);
assert(param.aux_def_file != NULL);
assert(param.status_file != NULL);
assert(param.core_dir != NULL);
if (strlen(param.dbase_dir) > 0)
......@@ -404,6 +407,7 @@ read_configuration(const char *conf_file)
add_prefix(&param.memuse_name);
add_prefix(&param.logfile_name);
add_prefix(&param.aux_def_file);
add_prefix(&param.status_file);
add_prefix(&param.core_dir);
}
else
......@@ -418,6 +422,7 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.memuse_name);
err |= check_abs_path(&param.logfile_name);
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