Revision 7dd30006
b/lib/cmdlib.py | ||
---|---|---|
611 | 611 |
(self.op.master_netdev, |
612 | 612 |
result.output.strip())) |
613 | 613 |
|
614 |
if not os.path.exists(constants.NODE_INITD_SCRIPT):
|
|
615 |
raise errors.OpPrereqError("Missing init.d script '%s'. Please reinstall"
|
|
616 |
" or install the script manually." %
|
|
617 |
constants.NODE_INITD_SCRIPT) |
|
614 |
if not (os.path.isfile(constants.NODE_INITD_SCRIPT) and
|
|
615 |
os.access(constants.NODE_INITD_SCRIPT, os.X_OK)):
|
|
616 |
raise errors.OpPrereqError("Init.d script '%s' missing or not "
|
|
617 |
"executable." % constants.NODE_INITD_SCRIPT)
|
|
618 | 618 |
|
619 | 619 |
def Exec(self, feedback_fn): |
620 | 620 |
"""Initialize the cluster. |
Also available in: Unified diff