Changeset 152

Show
Ignore:
Timestamp:
09/04/07 13:07:29 (20 months ago)
Author:
smoku
Message:

removed redundant setting in jabberd wrapper. Closes #34

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tools/jabberd.in

    r2 r152  
    1515use strict; 
    1616use Getopt::Std; 
    17 #use FindBin qw($Bin); 
    1817use FileHandle; 
    1918use IPC::Open3; 
     
    110109        next if /^\s*$/; 
    111110        my ($job,$config) = /^\s*(\S+)\s*(\S*)\s*$/; 
    112         # Assume that all the commands are in the same directory 
    113         # as the jabberd script. The current configuration file 
    114         # format does not allow specification of pathnames for commands. 
    115         my $cmd = "$Bin/$job"; 
    116         push(@programs,[$job,$config,$cmd]); 
     111        push(@programs,[$job,$config]); 
    117112    } 
    118113    close(CFG); 
     
    138133foreach my $job (@programs) 
    139134{ 
    140     &LaunchJob($job->[0],$job->[1],$job->[2]); 
     135    &LaunchJob($job->[0],$job->[1]); 
    141136} 
    142137 
     
    190185    my $job = shift; 
    191186    my $config = shift; 
    192     my $cmd = shift; 
    193  
    194     if (!defined($cmd)) 
    195     { 
    196         $cmd = $jobs{$job}->{cmd}; 
    197     } 
     187 
     188    my $cmd = $jobs{$job}->{cmd}; 
     189 
    198190    if (defined($config)) 
    199191    {