Lines Matching refs:logfile
933 set_file('logfile', 'initially logfile');
934 set_file('logfile.0', 'initially logfile.0');
937 lstat 'logfile' or die "lstat logfile: $!\n";
942 [ -s logfile ] && exit 1
943 [ -f logfile.0 ] || exit 1
944 [ "xinitially logfile" = "x`/bin/cat logfile.0`" ] || exit 1
945 [ "`/bin/ls -i logfile.0 | /bin/awk '{ print \$1; }'`" = "$stino" ] || exit 1
946 [ -f logfile.1 ] || exit 1
947 [ "xinitially logfile.0" = "x`/bin/cat logfile.1`" ] || exit 1
954 exec $bindir/logadm -f /dev/null -p now logfile >std.out 2>std.err
964 set_file('logfile', 'initially logfile');
965 set_file('logfile.0', 'initially logfile.0');
968 lstat 'logfile' or die "lstat logfile: $!\n";
973 [ -s logfile ] && exit 1
974 [ -f logfile.0 ] || exit 1
975 [ "xinitially logfile" = "x`/bin/cat logfile.0`" ] || exit 1
976 [ "`/bin/ls -i logfile.0 | /bin/awk '{ print \$1; }'`" = "$stino" ] && exit 1
977 [ -f logfile.1 ] || exit 1
978 [ "xinitially logfile.0" = "x`/bin/cat logfile.1`" ] || exit 1
985 exec $bindir/logadm -f /dev/null -p now -c logfile >std.out 2>std.err
995 set_file('logfile', 'initially logfile');
996 set_file('logfile.0', 'initially logfile.0');
997 set_file('logfile.1', 'initially logfile.1');
1002 [ -s logfile ] && exit 1
1003 [ -f logfile.0 ] || exit 1
1004 [ "xinitially logfile" = "x`/bin/cat logfile.0`" ] || exit 1
1005 [ -f logfile.1 ] || exit 1
1006 [ "xinitially logfile.0" = "x`/bin/cat logfile.1`" ] || exit 1
1007 [ -f logfile.2 ] && exit 1
1014 exec $bindir/logadm -f /dev/null -p now logfile -C2 >std.out 2>std.err
1024 set_file('logfile', 'initially logfile');
1025 set_file('logfile.0', 'initially logfile.0');
1026 set_file('logfile.1', 'initially logfile.1');
1031 [ -s logfile ] && exit 1
1032 [ -f logfile.0 ] || exit 1
1033 [ "xinitially logfile" = "x`/bin/cat logfile.0`" ] || exit 1
1034 [ -f logfile.1 ] || exit 1
1035 [ "xinitially logfile.0" = "x`/bin/cat logfile.1`" ] || exit 1
1036 [ -f logfile.2 ] && exit 1
1047 exec $bindir/logadm -f /dev/null -p now logfile -C2 -b 'echo pre-command-stuff > pre.out' -a 'echo post-command-stuff > post.out' >std.out 2>std.err
1057 set_file('logfile', 'initially logfile');
1062 [ -s logfile ] && exit 1
1065 [ -f logfile.$d ] || exit 1
1066 [ "xinitially logfile" = "x`/bin/cat logfile.$d`" ] || exit 1
1073 exec $bindir/logadm -f /dev/null -p now logfile -t '\$file.\%d' >std.out 2>std.err
1083 set_file('logfile', 'initially logfile');
1084 set_file('logfile.0', 'initially logfile.0');
1087 just rotated: initially logfile
1088 just expired: initially logfile.0
1094 [ -s logfile ] && exit 1
1095 [ -f logfile.0 ] || exit 1
1096 [ "xinitially logfile" = "x`/bin/cat logfile.0`" ] || exit 1
1097 [ -f logfile.1 ] || exit 1
1098 [ "xinitially logfile.0" = "x`/bin/cat logfile.1`" ] || exit 1
1105 exec $bindir/logadm -f /dev/null -p now logfile -C1 -R 'echo just rotated: `/bin/cat \$file` >>cmd.out' -E 'echo just expired: `/bin/cat \$file` >>cmd.out' >std.out 2>std.err
1115 set_file('logfile', 'initially logfile');
1118 logadm: Warning: command failed: /bin/chown _nonexistentuser_:_nonexistentgroup_ logfile
1125 [ -s logfile ] && exit 1
1126 [ -f logfile.0 ] || exit 1
1127 [ "xinitially logfile" = "x`/bin/cat logfile.0`" ] || exit 1
1128 [ "`/bin/ls -l logfile | /bin/awk '{ print $1; }'`" = "-r----x--x" ] || exit 1
1135 exec $bindir/logadm -f /dev/null -p now logfile -m 411 -o _nonexistentuser_ -g _nonexistentgroup_ >std.out 2>std.err
1676 logadm: Warning: logfile: No such file or directory
1687 exec $bindir/logadm -f /dev/null logfile >std.out 2>std.err
1706 exec $bindir/logadm -N -f /dev/null logfile >std.out 2>std.err
1864 set_file('logfile', '');
1865 set_file('logfile.0', 'initially logfile.0');
1866 set_file('logfile.1', 'initially logfile.1');
1867 set_file('logfile.2', 'initially logfile.2');
1868 set_file('logfile.3', 'initially logfile.3');
1869 set_file('logfile.4', 'initially logfile.4');
1870 set_file('logfile.5', 'initially logfile.5');
1871 set_file('logfile.6', 'initially logfile.6');
1872 set_file('logfile.7', 'initially logfile.7');
1873 set_file('logfile.8', 'initially logfile.8');
1874 set_file('logfile.9', 'initially logfile.9');
1879 [ -f logfile ] || exit 1
1880 [ "x" = "x`/bin/cat logfile`" ] || exit 1
1881 [ -f logfile.0 ] || exit 1
1882 [ "xinitially logfile.0" = "x`/bin/cat logfile.0`" ] || exit 1
1883 [ -f logfile.1 ] || exit 1
1884 [ "xinitially logfile.1" = "x`/bin/cat logfile.1`" ] || exit 1
1885 [ -f logfile.2 ] || exit 1
1886 [ "xinitially logfile.2" = "x`/bin/cat logfile.2`" ] || exit 1
1887 [ -f logfile.3 ] && exit 1
1888 [ -f logfile.4 ] || exit 1
1889 [ "xinitially logfile.4" = "x`/bin/cat logfile.4`" ] || exit 1
1890 [ -f logfile.5 ] && exit 1
1891 [ -f logfile.6 ] || exit 1
1892 [ "xinitially logfile.6" = "x`/bin/cat logfile.6`" ] || exit 1
1893 [ -f logfile.7 ] && exit 1
1894 [ -f logfile.8 ] || exit 1
1895 [ "xinitially logfile.8" = "x`/bin/cat logfile.8`" ] || exit 1
1896 [ -f logfile.9 ] && exit 1
1897 [ -f logfile.10 ] && exit 1
1904 exec $bindir/logadm -f /dev/null logfile -C1 -T '*.[13579]'>std.out 2>std.err
1932 Options which control when a logfile is rotated:
1938 Options which control how a logfile is rotated:
1942 -c copy & truncate logfile, don't rename
1979 set_file('logfile', 'initially logfile');
1984 [ -f dir1/dir2/logfile ] || exit 1
1985 [ -f logfile ] || exit 1
1986 [ "xinitially logfile" = "x`/bin/cat dir1/dir2/logfile`" ] || exit 1
1993 exec $bindir/logadm -f /dev/null -t 'dir1/dir2/\$basename' logfile -p now >std.out 2>std.err
2057 set_file('logfile', 'initially logfile');
2062 [ -s logfile ] && exit 1
2065 [ -f logfile.$d ] || exit 1
2066 [ "xinitially logfile" = "x`/bin/cat logfile.$d`" ] || exit 1
2073 exec $bindir/logadm -f /dev/null -l -p now logfile -t '\$file.\%d\%H\%M' >std.out 2>std.err