/usr/lib/tarantool/logger is in tarantool-common 1.5.1.218.g1a69fd6-1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/perl
use strict;
use warnings;
my $log = shift or die "usage: $0 some.log\n";
my $reopen;
$SIG{HUP} = sub { $reopen = 1 };
my $fh;
while (<STDIN>) {
if ($reopen or not $fh) {
undef $fh;
undef $reopen;
if (open $fh, ">>", $log) {
select $fh;
$| = 1;
}
}
print;
}
|