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

(parameters): Added "Lock file".

(read_configuration): Handle param.lockfile_name.
parent be1a0677
/*
* $Id: server-config.c,v 0.60 1999/05/18 13:07:00 byers Exp $
* $Id: server-config.c,v 0.61 1999/05/21 06:50:51 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.60 1999/05/18 13:07:00 byers Exp $";
rcsid = "$Id: server-config.c,v 0.61 1999/05/21 06:50:51 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -118,6 +118,9 @@ static const struct parameter parameters[] = {
{"Backup file 2",
assign_string, 0, 1, "db/lyskomd-backup-prev",
&param.backupfile_name_2},
{"Lock file",
assign_string, 0, 1, "db/lyskomd-lock",
&param.lockfile_name},
{"Text file",
assign_string, 0, 1, "db/lyskomd-texts", &param.textfile_name},
{"Text backup file",
......@@ -444,6 +447,7 @@ read_configuration(const char *conf_file)
assert(param.datafile_name != NULL);
assert(param.backupfile_name != NULL);
assert(param.backupfile_name_2 != NULL);
assert(param.lockfile_name != NULL);
assert(param.textfile_name != NULL);
assert(param.textbackupfile_name != NULL);
assert(param.statistic_name != NULL);
......@@ -467,6 +471,7 @@ read_configuration(const char *conf_file)
add_prefix(&param.datafile_name);
add_prefix(&param.backupfile_name);
add_prefix(&param.backupfile_name_2);
add_prefix(&param.lockfile_name);
add_prefix(&param.textfile_name);
add_prefix(&param.textbackupfile_name);
add_prefix(&param.statistic_name);
......@@ -484,6 +489,7 @@ read_configuration(const char *conf_file)
err |= check_abs_path(&param.datafile_name);
err |= check_abs_path(&param.backupfile_name);
err |= check_abs_path(&param.backupfile_name_2);
err |= check_abs_path(&param.lockfile_name);
err |= check_abs_path(&param.textfile_name);
err |= check_abs_path(&param.textbackupfile_name);
err |= check_abs_path(&param.statistic_name);
......
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