Changeset 11232

Show
Ignore:
Timestamp:
08/18/08 15:18:48 (5 months ago)
Author:
/C=ES/O=Warp Networks S.L./CN=ejhernandez@…
Message:

Fixing jobReceiver to work with new communication convention refs #1103

Location:
branches/remote-services/ebox/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/remote-services/ebox/src/EBox/RemoteServices/Server/JobReceiver.pm

    r11199 r11232  
    9595    } 
    9696 
    97     my $jobDirPath = INCOMING_DIR . "$jobId/"; 
     97    my $jobDirPath = JOBS_DIR . "$jobId/"; 
    9898    my $retValue = 0; 
    9999    if ( -d $jobDirPath ) { 
     
    106106    chmod(0700, "$jobDirPath/script"); 
    107107    File::Slurp::write_file( "$jobDirPath/args", $arguments); 
     108    # Create the symlink to incoming directory to make it notify to 
     109    # the ebox-runnerd 
     110    symlink( $jobDirPath, INCOMING_DIR . $jobId); 
    108111 
    109112    return $class->_soapResult($retValue); 
  • branches/remote-services/ebox/src/EBox/RemoteServices/Server/t/jobReceiver.t

    r11199 r11232  
    4747                  script => qq{#!/bin/bash\necho "\$@"}, 
    4848                  arguments => $args); 
    49 my $jobDirPath = EBox::Config::conf() . "remote-services/jobs/incoming/$jobId/"; 
     49my $jobDirPath = EBox::Config::conf() . "remote-services/jobs/$jobId/"; 
    5050my $cmd = new Test::Cmd( 
    5151    prog => "${jobDirPath}script", 
     
    7474_testCmd($cmd, $jobDirPath, $args); 
    7575 
    76 system("rm -rf $jobDirPath"); 
     76#system("rm -rf $jobDirPath"); 
  • branches/remote-services/ebox/src/libexec/ebox-runnerd

    r11231 r11232  
    8080    close($returnedFile); 
    8181    unless ( -d OUTCOMING_DIR . $jobId ) { 
    82         symlink( $jobDir, OUTCOMING_DIR . $jobId); 
     82        my $realJobDir = JOBS_DIR . $jobId; 
     83        symlink( $realJobDir, OUTCOMING_DIR . $jobId); 
    8384    } 
    8485    unlink($jobDir);