Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
39f4e05b
Commit
39f4e05b
authored
Jan 29, 2015
by
Marcin Siodelski
Browse files
[3669] Specify the pid file location for kea-lfc in the Memfile backend.
parent
c1372a95
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/memfile_lease_mgr.cc
View file @
39f4e05b
...
...
@@ -442,6 +442,9 @@ Memfile_LeaseMgr::appendSuffix(const std::string& file_name,
case
FILE_FINISH
:
name
+=
".completed"
;
break
;
case
FILE_PID
:
name
+=
".pid"
;
break
;
default:
// Do not append any suffix for the FILE_CURRENT.
;
...
...
@@ -554,7 +557,7 @@ Memfile_LeaseMgr::lfcSetup() {
// Universe: v4 or v6.
args
.
push_back
(
lease_file4_
?
"-4"
:
"-6"
);
// Previous file.
args
.
push_back
(
"-
p
"
);
args
.
push_back
(
"-
x
"
);
args
.
push_back
(
appendSuffix
(
lease_file
,
FILE_PREVIOUS
));
// Input file.
args
.
push_back
(
"-i"
);
...
...
@@ -565,6 +568,10 @@ Memfile_LeaseMgr::lfcSetup() {
// Finish file.
args
.
push_back
(
"-f"
);
args
.
push_back
(
appendSuffix
(
lease_file
,
FILE_FINISH
));
// PID file.
args
.
push_back
(
"-p"
);
args
.
push_back
(
appendSuffix
(
lease_file
,
FILE_PID
));
// The configuration file is currently unused.
args
.
push_back
(
"-c"
);
args
.
push_back
(
"ignored-path"
);
...
...
src/lib/dhcpsrv/memfile_lease_mgr.h
View file @
39f4e05b
...
...
@@ -123,7 +123,8 @@ public:
FILE_INPUT
,
FILE_PREVIOUS
,
FILE_OUTPUT
,
FILE_FINISH
FILE_FINISH
,
FILE_PID
};
/// @brief The sole lease manager constructor
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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