Revision 111a7d04 lib/utils/__init__.py
b/lib/utils/__init__.py | ||
---|---|---|
41 | 41 |
from ganeti import errors |
42 | 42 |
from ganeti import constants |
43 | 43 |
from ganeti import compat |
44 |
from ganeti import pathutils |
|
44 | 45 |
|
45 | 46 |
from ganeti.utils.algo import * |
46 | 47 |
from ganeti.utils.filelock import * |
... | ... | |
466 | 467 |
"""Check for and start daemon if not alive. |
467 | 468 |
|
468 | 469 |
""" |
469 |
result = RunCmd([constants.DAEMON_UTIL, "check-and-start", name])
|
|
470 |
result = RunCmd([pathutils.DAEMON_UTIL, "check-and-start", name])
|
|
470 | 471 |
if result.failed: |
471 | 472 |
logging.error("Can't start daemon '%s', failure %s, output: %s", |
472 | 473 |
name, result.fail_reason, result.output) |
... | ... | |
479 | 480 |
"""Stop daemon |
480 | 481 |
|
481 | 482 |
""" |
482 |
result = RunCmd([constants.DAEMON_UTIL, "stop", name])
|
|
483 |
result = RunCmd([pathutils.DAEMON_UTIL, "stop", name])
|
|
483 | 484 |
if result.failed: |
484 | 485 |
logging.error("Can't stop daemon '%s', failure %s, output: %s", |
485 | 486 |
name, result.fail_reason, result.output) |
Also available in: Unified diff