Ignore:
Timestamp:
01/07/10 00:41:58 (15 years ago)
Author:
nanardon
Message:
  • add a daemon to manage synchronisation as batch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/bin/la-sync

    r457 r578  
    2929    'o|object=s'   => \my $otype, 
    3030    's|syncname=s' => \my $syncname, 
     31    'b|batch'    => \my $batch, 
    3132) or pod2usage(); 
    3233 
     
    4647severals times 
    4748 
     49=item -b|--batch 
     50 
     51Don't really perform any synchronisation but try to call daemon process 
     52to perform immediate synchronisation.  
     53 
    4854=cut 
    4955 
    5056my $LA = LATMOS::Accounts->new($config, noacl => 1); 
     57 
     58if ($batch) { 
     59    exit ($LA->call_batch_sync ? 0 : 1); 
     60} 
    5161 
    5262my $sync = $LA->create_synchro( 
Note: See TracChangeset for help on using the changeset viewer.