make zmcontrol log to zmcontrol_id.log

This commit is contained in:
Isaac Connor 2019-09-23 12:21:59 -04:00
parent a05c513643
commit bc33c0bcb5
1 changed files with 1 additions and 2 deletions

View File

@ -41,8 +41,6 @@ $ENV{PATH} = '/bin:/usr/bin:/usr/local/bin';
$ENV{SHELL} = '/bin/sh' if exists $ENV{SHELL};
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
logInit();
my $arg_string = join(' ', @ARGV);
my $id;
@ -69,6 +67,7 @@ if ( !$id ) {
}
( $id ) = $id =~ /^(\w+)$/;
logInit($id?(id=>'zmcontrol_'.$id):());
my $sock_file = $Config{ZM_PATH_SOCKS}.'/zmcontrol-'.$id.'.sock';
Debug("zmcontrol: arg string: $arg_string sock file $sock_file");