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_selfservice/FS-SelfService/freeside-selfservice-clientd | |
parent | 7598ece6cac31548505dd610ef418ca001adf5b2 (diff) |
add tagging ability so we can run multiple self-service clients on one machine
Diffstat (limited to 'fs_selfservice/FS-SelfService/freeside-selfservice-clientd')
-rw-r--r-- | fs_selfservice/FS-SelfService/freeside-selfservice-clientd | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs_selfservice/FS-SelfService/freeside-selfservice-clientd b/fs_selfservice/FS-SelfService/freeside-selfservice-clientd index 45d9da9c7..a8b1e713b 100644 --- a/fs_selfservice/FS-SelfService/freeside-selfservice-clientd +++ b/fs_selfservice/FS-SelfService/freeside-selfservice-clientd @@ -16,16 +16,18 @@ use IO::File; #STDOUT->setbuf(''); +my $tag = scalar(@ARGV) ? '.'.shift : ''; + use vars qw( $Debug ); $Debug = 2; #2 will turn on child logging, 3 will log packet contents, #including potentially compromising information -my $socket = "/usr/local/freeside/selfservice_socket"; +my $socket = "/usr/local/freeside/selfservice_socket$tag"; my $pid_file = "$socket.pid"; -my $log_file = "/usr/local/freeside/selfservice.log"; +my $log_file = "/usr/local/freeside/selfservice$tag.log"; -my $lock_file = "/usr/local/freeside/selfservice.writelock"; +my $lock_file = "/usr/local/freeside/selfservice$tag.writelock"; #my $me = '[client]'; |