示例#1
0
def run(launchfile, *args):
    result = execute_command(pal_path.get_launch_path(launchfile), *args)
    if result != 0:
        raise LaunchError(launchfile, launchfile, result)
示例#2
0
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]')
示例#3
0
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]')
示例#4
0
def run(launchfile, *args):
    result = execute_command(pal_path.get_launch_path(launchfile), *args)
    if result != 0:
        raise LaunchError(launchfile, launchfile, result)
示例#5
0
def stop(component):
    launchfile = '%sStop.sh' % component
    result = execute_command(pal_path.get_launch_path(launchfile))
    if result != 0:
        raise LaunchError(component, launchfile, result)
示例#6
0
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]')
示例#7
0
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]')
示例#8
0
def stop(component):
    launchfile = '%sStop.sh' % component
    result = execute_command(pal_path.get_launch_path(launchfile))
    if result != 0:
        raise LaunchError(component, launchfile, result)