Commit f7ece0a6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): New parameter: "savecore path".

(read_configuration): Handle param.savecore_path.
parent 2eaf35d0
/*
* $Id: server-config.c,v 0.55 1999/04/17 21:57:10 ceder Exp $
* $Id: server-config.c,v 0.56 1999/04/18 13:10:20 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.55 1999/04/17 21:57:10 ceder Exp $";
rcsid = "$Id: server-config.c,v 0.56 1999/04/18 13:10:20 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -279,6 +279,8 @@ static const struct parameter parameters[] = {
assign_int, 0, 1, "120", &param.downtime_mail_end},
{"lyskomd path",
assign_string, 0, 1, "bin/lyskomd", &param.lyskomd_path},
{"savecore path",
assign_string, 0, 1, "bin/savecore", &param.savecore_path},
/* end marker */
......@@ -434,6 +436,7 @@ read_configuration(const char *conf_file)
assert(param.status_file != NULL);
assert(param.core_dir != NULL);
assert(param.lyskomd_path != NULL);
assert(param.savecore_path != NULL);
if (strlen(param.dbase_dir) > 0)
{
......@@ -456,6 +459,7 @@ read_configuration(const char *conf_file)
add_prefix(&param.status_file);
add_prefix(&param.core_dir);
add_prefix(&param.lyskomd_path);
add_prefix(&param.savecore_path);
}
else
{
......@@ -472,6 +476,7 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.status_file);
err |= check_abs_path(&param.core_dir);
err |= check_abs_path(&param.lyskomd_path);
err |= check_abs_path(&param.savecore_path);
}
/* FIXME///+++ Check config parameters for sanity */
......
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