make zmcontrol log to zmcontrol_id.log
This commit is contained in:
parent
a05c513643
commit
bc33c0bcb5
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue