mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
Tell parking lot which port to use.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@206 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -110,10 +110,11 @@ class BoB:
|
|||||||
|
|
||||||
# start the parking lot
|
# start the parking lot
|
||||||
# XXX: this must be read from the configuration manager in the future
|
# XXX: this must be read from the configuration manager in the future
|
||||||
|
# XXX: we hardcode port 5300
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
sys.stdout.write("Starting parkinglot\n")
|
sys.stdout.write("Starting parkinglot\n")
|
||||||
try:
|
try:
|
||||||
parkinglot = subprocess.Popen("parkinglot",
|
parkinglot = subprocess.Popen(["parkinglot", "-p", "5300",],
|
||||||
stdin=dev_null,
|
stdin=dev_null,
|
||||||
stdout=dev_null,
|
stdout=dev_null,
|
||||||
stderr=dev_null,
|
stderr=dev_null,
|
||||||
@@ -153,7 +154,7 @@ class BoB:
|
|||||||
pass
|
pass
|
||||||
time.sleep(0.1) # XXX: some delay probably useful... how much is uncertain
|
time.sleep(0.1) # XXX: some delay probably useful... how much is uncertain
|
||||||
# next try sending a SIGTERM
|
# next try sending a SIGTERM
|
||||||
processes_to_stop = list(self.processes)
|
processes_to_stop = list(self.processes.values())
|
||||||
unstopped_processes = []
|
unstopped_processes = []
|
||||||
for process in processes_to_stop:
|
for process in processes_to_stop:
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
@@ -187,6 +188,9 @@ class BoB:
|
|||||||
"""The process specified by pid has exited with the value
|
"""The process specified by pid has exited with the value
|
||||||
exit_status, so perform any action necessary (cleanup,
|
exit_status, so perform any action necessary (cleanup,
|
||||||
restart, and so on).
|
restart, and so on).
|
||||||
|
|
||||||
|
Returns True if everything is okay, or False if a fatal error
|
||||||
|
has been detected and the program should exit.
|
||||||
"""
|
"""
|
||||||
process = self.processes.pop(pid)
|
process = self.processes.pop(pid)
|
||||||
self.dead_processes[process.pid] = process
|
self.dead_processes[process.pid] = process
|
||||||
|
Reference in New Issue
Block a user