On Thu, 12 Mar 2009, Joe Pruett wrote:
> you might want to strace cron to see what it is doing.
[r...@salmo ~]# strace /usr/sbin/crond
execve("/usr/sbin/crond", ["/usr/sbin/crond"], [/* 44 vars */]) = 0 brk(0)
= 0x804d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f92000
access("/etc/ld.so.preload", R_OK) = 0
open("/etc/ld.so.preload", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18, ...}) = 0
mmap2(NULL, 18, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb7f91000
close(3) = 0
open("/lib/libsafe.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\20\0\000"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=20356, ...}) = 0
mmap2(NULL, 18272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7f8c000
mmap2(0xb7f90000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xb7f90000
mprotect(0xbfeae000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) =
0 close(3) = 0
munmap(0xb7f91000, 18) = 0
open("/usr/local/eclipse/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/local/eclipse/tls/i686/sse2", 0xbfeae0c0) = -1 ENOENT (No such
file or directory)
open("/usr/local/eclipse/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/local/eclipse/tls/i686", 0xbfeae0c0) = -1 ENOENT (No such file
or directory)
open("/usr/local/eclipse/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/local/eclipse/tls/sse2", 0xbfeae0c0) = -1 ENOENT (No such file
or directory)
open("/usr/local/eclipse/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/local/eclipse/tls", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/local/eclipse/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/local/eclipse/i686/sse2", 0xbfeae0c0) = -1 ENOENT (No such file
or directory)
open("/usr/local/eclipse/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/local/eclipse/i686", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/local/eclipse/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/local/eclipse/sse2", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/local/eclipse/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/local/eclipse", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/qt/lib/tls/i686/sse2", 0xbfeae0c0) = -1 ENOENT (No such
file or directory)
open("/usr/lib/qt/lib/tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/qt/lib/tls/i686", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/qt/lib/tls/sse2", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/qt/lib/tls", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/qt/lib/i686/sse2", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/qt/lib/i686", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib/qt/lib/sse2", 0xbfeae0c0) = -1 ENOENT (No such file or
directory)
open("/usr/lib/qt/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/qt/lib", {st_mode=S_IFDIR|0755, st_size=664, ...}) = 0
open("tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=130303, ...}) = 0
mmap2(NULL, 130303, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f6c000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360d\1"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1570593, ...}) = 0
mmap2(NULL, 1357360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7e20000
mprotect(0xb7f65000, 4096, PROT_NONE) = 0
mmap2(0xb7f66000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x145) = 0xb7f66000
mmap2(0xb7f69000, 9776, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f69000
close(3) = 0
open("/usr/lib/qt/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/i686/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("tls/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("i686/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\n\0\000"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=13474, ...}) = 0
mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7e1c000
mmap2(0xb7e1e000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7e1e000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f91000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f916c0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
mprotect(0xb7e1e000, 4096, PROT_READ) = 0
mprotect(0xb7f66000, 8192, PROT_READ) = 0
mprotect(0xb7faf000, 4096, PROT_READ) = 0
munmap(0xb7f6c000, 130303) = 0
readlink("/proc/self/exe", "/usr/sbin/crond", 4095) = 15
brk(0) = 0x804d000
brk(0x806e000) = 0x806e000
open("/etc/libsafe.exclude", O_RDONLY) = -1 ENOENT (No such file or
directory)
getuid32() = 0
chdir("/var/spool/cron/crontabs") = 0
close(0) = 0
close(1) = 0
close(2) = 0
open("/dev/null", O_RDWR) = 0
dup2(0, 0) = 0
dup2(0, 1) = 1
dup2(0, 2) = 2
setsid() = 10200
open("/dev/tty", O_RDWR) = -1 ENXIO (No such device or
address)
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7f91708) = 10201
exit_group(0) = ?
Process 10200 detached
Many of the files it says it cannot find exist, but in different
directories. As far as I know, nothing's changed since log reporting
stopped.
> and check to see how cron.* is handled in syslog.conf just to make sure
> that /var/log/cron is the right place to look.
# Cron related logs:
cron.* -/var/log/cron
Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug