예제 #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)