def run(launchfile, *args): result = execute_command(pal_path.get_launch_path(launchfile), *args) if result != 0: raise LaunchError(launchfile, launchfile, result)
def start(component, *params): launchfile = '%sStart.sh' % component process = spawn_command(pal_path.get_launch_path(launchfile), *params) if process is None: raise LaunchError(component, launchfile, '[execution failed]')
def stop(component): launchfile = '%sStop.sh' % component process = spawn_command(pal_path.get_launch_path(launchfile)) if process is None: raise LaunchError(component, launchfile, '[execution failed]')
def stop(component): launchfile = '%sStop.sh' % component result = execute_command(pal_path.get_launch_path(launchfile)) if result != 0: raise LaunchError(component, launchfile, result)