def run_regiond_command(management, parser):
"""Called to run the regiond command.
The command itself is sys.argv[1] so that is not passed into this function.
"""
# At present, only root should execute regiond commands
if os.getuid() != 0:
raise SystemExit("You can only '%s' as root." % sys.argv[1])
management.execute_from_command_line()
评论列表
文章目录