6 # Copyright (c) 2003 Intel Corporation
9 # Copyright (c) 2004-2006 The Trustees of Princeton University
10 # All rights reserved.
15 from Exceptions import *
21 Start the RunlevelAgent.py script. Should follow
22 AuthenticateWithPLC() in order to guarantee that
23 /etc/planetlab/session is present.
26 log.write( "\n\nStep: Starting RunlevelAgent.py\n" )
29 cmd = "%s/monitor-runlevelagent" % vars['BM_SOURCE_DIR']
30 # raise error if script is not present.
32 # init script only starts RLA once.
33 os.system("/bin/sh %s start bootmanager" % cmd)
35 raise BootManagerException, "Missing variable in vars: %s\n" % var
36 except ValueError, var:
37 raise BootManagerException, "Variable in vars, shouldn't be: %s\n" % var