pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/33589 (apache ignores 'reload' from rc.d script as well as 'graceful' from apachectl(8))



 It works for me under NetBSD-i386 3.0_STABLE. Can you please "ktrace"
 "apachectl" to see what it is doing (or not doing)?

sure, here you are:

blackjack-a# ktruss apachectl graceful
 14912 ktruss   emul(netbsd)
 14912 ktruss   fcntl(0x4, 0x3, 0)                 = 1
 14912 ktruss   fcntl(0x4, 0x4, 0x1)               = 0
14912 ktruss execve("/sbin/apachectl", 0xbfbfed84, 0xbfbfed90) Err#2 ENOENT 14912 ktruss execve("/usr/sbin/apachectl", 0xbfbfed84, 0xbfbfed90) Err#2 ENOENT 14912 ktruss execve("/bin/apachectl", 0xbfbfed84, 0xbfbfed90) Err#2 ENOENT 14912 ktruss execve("/usr/bin/apachectl", 0xbfbfed84, 0xbfbfed90) Err#2 ENOENT
 14912 sh       emul(netbsd)
14912 sh execve("/usr/pkg/sbin/apachectl", 0xbfbfed84, 0xbfbfed90) JUSTRETURN 14912 sh mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 0xbdbeb000
 14912 sh       open("/etc/ld.so.conf", 0, 0)      = 3
 14912 sh       __fstat13(0x3, 0xbfbfec74)         = 0
 14912 sh       mmap(0, 0x37, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbea000
 14912 sh       close(0x3)                         = 0
 14912 sh       munmap(0xbdbea000, 0x37)           = 0
 14912 sh       open("/lib/libedit.so.2", 0, 0)    = 3
 14912 sh       __fstat13(0x3, 0xbfbfe974)         = 0
 14912 sh       mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbea000
 14912 sh       munmap(0xbdbea000, 0x1000)         = 0
 14912 sh       mmap(0, 0x19000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbdbd2000
14912 sh mmap(0xbdbe9000, 0x2000, 0x3, 0x12, 0x3, 0, 0x17000, 0) = 0xbdbe9000 14912 sh mmap(0xbdbeb000, 0, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0xbdbeb000
 14912 sh       close(0x3)                         = 0
 14912 sh       open("/lib/libtermcap.so.0", 0, 0xbfbfe974) = 3
 14912 sh       __fstat13(0x3, 0xbfbfe974)         = 0
 14912 sh       mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbd1000
 14912 sh       munmap(0xbdbd1000, 0x1000)         = 0
 14912 sh       mmap(0, 0x3000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbdbcf000
14912 sh mmap(0xbdbd1000, 0x1000, 0x3, 0x12, 0x3, 0, 0x2000, 0) = 0xbdbd1000 14912 sh mmap(0xbdbd2000, 0, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0xbdbd2000
 14912 sh       close(0x3)                         = 0
 14912 sh       open("/lib/libc.so.12", 0, 0xbfbfe974) = 3
 14912 sh       __fstat13(0x3, 0xbfbfe974)         = 0
 14912 sh       mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbce000
 14912 sh       munmap(0xbdbce000, 0x1000)         = 0
 14912 sh       mmap(0, 0xc2000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbdb0d000
14912 sh mmap(0xbdbb9000, 0x7000, 0x3, 0x12, 0x3, 0, 0xab000, 0) = 0xbdbb9000 14912 sh mmap(0xbdbc0000, 0xf000, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0xbdbc0000
 14912 sh       close(0x3)                         = 0
 14912 sh       issetugid()                        = 0
 14912 sh       getpid()                           = 14912, 28384
 14912 sh       __sysctl(0xbfbfeb08, 0x2, 0xbfbfeb00, 0xbfbfeb04, 0, 0) = 0
 14912 sh       readlink("/etc/malloc.conf", 0xbfbfeb80, 0x3f) Err#2 ENOENT
14912 sh mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 0xbdb0c000
 14912 sh       break(0x8063bf8)                   = 0
 14912 sh       break(0x8064bf8)                   = 0
 14912 sh       break(0x8065000)                   = 0
 14912 sh       break(0x8066000)                   = 0
 14912 sh       break(0x8067000)                   = 0
 14912 sh       geteuid()                          = 0
 14912 sh       open("/usr/pkg/sbin/apachectl", 0, 0xa) = 3
 14912 sh       fcntl(0x3, 0, 0xa)                 = 10
 14912 sh       close(0x3)                         = 0
 14912 sh       fcntl(0xa, 0x2, 0x1)               = 0
 14912 sh       getuid()                           = 0
 14912 sh       geteuid()                          = 0
 14912 sh       getgid()                           = 0
 14912 sh       getegid()                          = 0
 14912 sh       open("/root/.shrc", 0, 0xbfbfec78) = 3
 14912 sh       fcntl(0x3, 0x2, 0x1)               = 0
 14912 sh       break(0x8068000)                   = 0
 14912 sh       read(0x3, 0x8067000, 0x3f8)        = 204
"#\t$NetBSD: dot.shrc,v 1.6 2001/04/01 01:32:10 toddpw Exp $\n\nhup(){"
 14912 sh       break(0x8069000)                   = 0
 14912 sh       break(0x806a000)                   = 0
 14912 sh       read(0x3, 0x8067000, 0x3f8)        = 0
       ""
 14912 sh       close(0x3)                         = 0
 14912 sh       __sigaction_sigtramp(0x2, 0, 0xbfbfec20, 0, 0) = 0
 14912 sh       __sigaction_sigtramp(0x2, 0, 0xbfbfec10, 0, 0) = 0
14912 sh __sigaction_sigtramp(0x2, 0xbfbfec10, 0, 0xbdb66be4, 0x1) = 0 14912 sh __sigaction_sigtramp(0x2, 0xbfbfec10, 0xbfbfebf0, 0xbdb66be4, 0x1) = 0
 14912 sh       __sigaction_sigtramp(0x3, 0, 0xbfbfec20, 0, 0) = 0
 14912 sh       __sigaction_sigtramp(0x3, 0, 0xbfbfec10, 0, 0) = 0
14912 sh __sigaction_sigtramp(0x3, 0xbfbfec10, 0, 0xbdb66be4, 0x1) = 0 14912 sh __sigaction_sigtramp(0x3, 0xbfbfec10, 0xbfbfebf0, 0xbdb66be4, 0x1) = 0
 14912 sh       __sigaction_sigtramp(0x1, 0, 0xbfbfec20, 0, 0) = 0
 14912 sh       __sigaction_sigtramp(0x1, 0, 0xbfbfec10, 0, 0) = 0
14912 sh __sigaction_sigtramp(0x1, 0xbfbfec10, 0, 0xbdb66be4, 0x1) = 0 14912 sh __sigaction_sigtramp(0x1, 0xbfbfec10, 0xbfbfebf0, 0xbdb66be4, 0x1) = 0
 14912 sh       __sigaction_sigtramp(0x12, 0, 0xbfbfec20, 0, 0) = 0
 14912 sh       __sigaction_sigtramp(0x12, 0, 0xbfbfec10, 0, 0) = 0
14912 sh __sigaction_sigtramp(0x12, 0xbfbfec10, 0, 0xbdb66be4, 0x1) = 0 14912 sh __sigaction_sigtramp(0x12, 0xbfbfec10, 0xbfbfebf0, 0xbdb66be4, 0x1) = 0
 14912 sh       __sigaction_sigtramp(0xd, 0, 0xbfbfec20, 0, 0) = 0
 14912 sh       __sigaction_sigtramp(0xd, 0, 0xbfbfec10, 0, 0) = 0
14912 sh __sigaction_sigtramp(0xd, 0xbfbfec10, 0, 0xbdb66be4, 0x1) = 0 14912 sh __sigaction_sigtramp(0xd, 0xbfbfec10, 0xbfbfebf0, 0xbdb66be4, 0x1) = 0
 14912 sh       read(0xa, 0x8062980, 0x3f8)        = 1016
"#!/bin/sh\n#\n# Copyright 2000-2005 The Apache Software Foundation or"
 14912 sh       read(0xa, 0x8062980, 0x3f8)        = 1016
"\n#\t4 - httpd could not be stopped\n#\t5 - httpd could not be starte"
 14912 sh       __stat13("/usr/pkg/sbin/envvars", 0xbfbfe9f0) = 0
 14912 sh       open("/usr/pkg/sbin/envvars", 0, 0xbfbfeae8) = 3
 14912 sh       fcntl(0x3, 0, 0xa)                 = 11
 14912 sh       close(0x3)                         = 0
 14912 sh       fcntl(0xb, 0x2, 0x1)               = 0
 14912 sh       read(0xb, 0x8067000, 0x3f8)        = 821
"# Copyright 2001-2005 The Apache Software Foundation or its licensors"
 14912 sh       read(0xb, 0x8067000, 0x3f8)        = 0
       ""
 14912 sh       close(0xb)                         = 0
 14912 sh       read(0xa, 0x8062980, 0x3f8)        = 1016
"l not work.\nSTATUSURL="http://localhost:80/server-status"\n#\n# Set "
 14912 sh       pipe()                             = 3, 5
 14912 sh       fork()                             = 26050
 14912 sh       close(0x5)                         = 0
 14912 sh       read(0x3, 0xbfbfe9f0, 0x80)        = 5
       "1772\n"
 14912 sh       read(0x3, 0xbfbfe9f0, 0x80)        = 0
       ""
 14912 sh       close(0x3)                         = 0
 14912 sh       getpgrp()                          = 28384
 14912 sh       wait4(0xffffffff, 0xbfbfe978, 0, 0) = 26050
 14912 sh       break(0x806b000)                   = 0
 14912 sh       getrlimit(0x8, 0xbfbfeac0)         = 0
 14912 sh       setrlimit(0x8, 0xbfbfeac0)         = 0
 14912 sh       read(0xa, 0x8062980, 0x3f8)        = 51
       ")\n    $HTTPD $ARGV\n    ERROR=$?\nesac\n\nexit $ERROR\n\n"
 14912 sh       __vfork14()                        = 21584
 14912 sh       getpgrp()                          = 28384
 14912 sh       wait4(0xffffffff, 0xbfbfea48, 0, 0) = 21584
 14912 sh       exit(0)



Home | Main Index | Thread Index | Old Index