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
f7ece0a6
Commit
f7ece0a6
authored
Apr 18, 1999
by
Per Cederqvist
Browse files
(parameters): New parameter: "savecore path".
(read_configuration): Handle param.savecore_path.
parent
2eaf35d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/server-config.c
View file @
f7ece0a6
/*
* $Id: server-config.c,v 0.5
5
1999/04/1
7 21:57:1
0 ceder Exp $
* $Id: server-config.c,v 0.5
6
1999/04/1
8 13:10:2
0 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.5
5
1999/04/1
7 21:57:1
0 ceder Exp $"
;
rcsid
=
"$Id: server-config.c,v 0.5
6
1999/04/1
8 13:10:2
0 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 */
...
...
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