Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
a1dd83f7
Commit
a1dd83f7
authored
May 21, 1999
by
Per Cederqvist
Browse files
(parameters): Added "Lock file".
(read_configuration): Handle param.lockfile_name.
parent
be1a0677
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/server-config.c
View file @
a1dd83f7
/*
* $Id: server-config.c,v 0.6
0
1999/05/
18 13:07:00 by
er
s
Exp $
* $Id: server-config.c,v 0.6
1
1999/05/
21 06:50:51 ced
er 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.6
0
1999/05/
18 13:07:00 by
er
s
Exp $"
;
rcsid
=
"$Id: server-config.c,v 0.6
1
1999/05/
21 06:50:51 ced
er 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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment