Changeset 152
- Timestamp:
- 09/04/07 13:07:29 (20 months ago)
- Files:
-
- 1 modified
-
trunk/tools/jabberd.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/jabberd.in
r2 r152 15 15 use strict; 16 16 use Getopt::Std; 17 #use FindBin qw($Bin);18 17 use FileHandle; 19 18 use IPC::Open3; … … 110 109 next if /^\s*$/; 111 110 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]); 117 112 } 118 113 close(CFG); … … 138 133 foreach my $job (@programs) 139 134 { 140 &LaunchJob($job->[0],$job->[1] ,$job->[2]);135 &LaunchJob($job->[0],$job->[1]); 141 136 } 142 137 … … 190 185 my $job = shift; 191 186 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 198 190 if (defined($config)) 199 191 {
