diff options
author | ivan <ivan> | 2003-10-15 15:03:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-10-15 15:03:56 +0000 |
commit | bacea004a735c7a9c30a35e9184a63897a200e6e (patch) | |
tree | 2d3f49daf57cc5b9ff27a22b8ab971a40bdcf1e0 /FS/bin | |
parent | 7598ece6cac31548505dd610ef418ca001adf5b2 (diff) |
add tagging ability so we can run multiple self-service clients on one machine
Diffstat (limited to 'FS/bin')
-rw-r--r-- | FS/bin/freeside-selfservice-server | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/bin/freeside-selfservice-server b/FS/bin/freeside-selfservice-server index 107103973..05fa72b43 100644 --- a/FS/bin/freeside-selfservice-server +++ b/FS/bin/freeside-selfservice-server @@ -33,6 +33,7 @@ $kids = 0; my $user = shift or die &usage; my $machine = shift or die &usage; +my $tag = scalar(@ARGV) ? shift : ''; my $pid_file = "/var/run/freeside-selfservice-server.$user.pid"; #my $pid_file = "/var/run/freeside-selfservice-server.$user.pid"; $FS::UID::datasrc not posible, but should include machine name at least, hmm @@ -50,7 +51,7 @@ while (1) { my($writer,$reader,$error) = (new IO::Handle, new IO::Handle, new IO::Handle); warn "connecting to $machine\n" if $Debug; - $ssh_pid = sshopen2($machine,$reader,$writer,$clientd); + $ssh_pid = sshopen2($machine,$reader,$writer,$clientd,$tag); # nstore_fd(\*writer, {'hi'=>'there'}); |