Fix several code comment errors in process monitor.
Change-Id: I21617a0952c2d6704e7adb8397d032a21ba38d8e
This commit is contained in:
@@ -164,7 +164,7 @@ class HandleProcess(object):
|
|||||||
|
|
||||||
for retries in range(0, CONF.process.restart_retries + 1):
|
for retries in range(0, CONF.process.restart_retries + 1):
|
||||||
|
|
||||||
# Execute pre start command.
|
# Execute pre restart command.
|
||||||
if pre_cmd_str:
|
if pre_cmd_str:
|
||||||
ret = self._execute_cmd(pre_cmd_str,
|
ret = self._execute_cmd(pre_cmd_str,
|
||||||
down_process['run_as_root'])
|
down_process['run_as_root'])
|
||||||
@@ -174,14 +174,14 @@ class HandleProcess(object):
|
|||||||
CONF.process.restart_interval)
|
CONF.process.restart_interval)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Execute start command.
|
# Execute restart command.
|
||||||
ret = self._execute_cmd(cmd_str, down_process['run_as_root'])
|
ret = self._execute_cmd(cmd_str, down_process['run_as_root'])
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
# Failed to restart process.
|
# Failed to restart process.
|
||||||
eventlet.greenthread.sleep(CONF.process.restart_interval)
|
eventlet.greenthread.sleep(CONF.process.restart_interval)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Execute post start command.
|
# Execute post restart command.
|
||||||
if post_cmd_str:
|
if post_cmd_str:
|
||||||
ret = self._execute_cmd(post_cmd_str,
|
ret = self._execute_cmd(post_cmd_str,
|
||||||
down_process['run_as_root'])
|
down_process['run_as_root'])
|
||||||
|
Reference in New Issue
Block a user