3 # Copyright (c) 2003 Intel Corporation
6 # Copyright (c) 2004-2006 The Trustees of Princeton University
12 from Exceptions import *
17 Start the RunlevelAgent.py script. Should follow
18 AuthenticateWithPLC() in order to guarantee that
19 /etc/planetlab/session is present.
22 log.write("\n\nStep: Starting RunlevelAgent.py\n")
25 cmd = "{}/RunlevelAgent.py".format(vars['BM_SOURCE_DIR'])
26 # raise error if script is not present.
28 # init script only starts RLA once.
29 os.system("/usr/bin/python {} start bootmanager &".format(cmd))
30 except KeyError as var:
31 raise BootManagerException("Missing variable in vars: {}\n".format(var))
32 except ValueError as var:
33 raise BootManagerException("Variable in vars, shouldn't be: {}\n".format(var))