Dear gentleman,

I am running qmail, and it's dying at least 2 times a single day.
I decided to run ktrace for it, here is what i got:

...
...
...
 31968 qmail-clean RET   write 1
 31968 qmail-clean CALL  read(0,0x804b7b0,0x100)
 31968 qmail-clean CSW  stop kernel
 31964 qmail-send RET   write 12/0xc
 31964 qmail-send CALL  read(0x6,0x80550d0,0x400)
 31964 qmail-send GIO   fd 6 read 1 byte
       "+"
 31964 qmail-send RET   read 1
 31964 qmail-send CALL  gettimeofday(0xbfbfdaf4,0)
 31964 qmail-send RET   gettimeofday 0
 31964 qmail-send CALL  select(0x9,0xbfbfdbb4,0xbfbfdb34,0,0xbfbfdb20)
 31964 qmail-send CSW  stop kernel
 31966 qmail-lspawn CSW  resume kernel
 31966 qmail-lspawn PSIG  SIGHUP SIG_DFL
 31964 qmail-send CSW  resume kernel
 31964 qmail-send RET   select 1
 31964 qmail-send CALL  gettimeofday(0xbfbfdaf4,0)
 31964 qmail-send RET   gettimeofday 0
 31964 qmail-send CALL  read(0x2,0x8054090,0x800)
 31964 qmail-send GIO   fd 2 read 0 bytes

       ""
 31964 qmail-send RET   read 0
 31964 qmail-send CALL  write(0,0x804e667,0x2e)
 31964 qmail-send GIO   fd 0 wrote 46 bytes
       "alert: oh no! lost spawn connection! dying...
       "
 31965 multilog CSW  resume kernel
 31965 multilog GIO   fd 0 read 46 bytes
       "alert: oh no! lost spawn connection! dying...
       "
 31965 multilog RET   read 46/0x2e
 31965 multilog CALL  gettimeofday(0xbfbfdb70,0)
 31965 multilog RET   gettimeofday 0
 31965 multilog CALL  write(0x5,0x804d834,0x48)
 31965 multilog GIO   fd 5 wrote 72 bytes
       "@4000000038096be72abda0a4 alert: oh no! lost spawn connection!
dying..\
        .
       "
 31965 multilog RET   write 72/0x48
 31965 multilog CALL  read(0,0x804daa0,0x400)
 31965 multilog CSW  stop kernel
 31964 qmail-send RET   write 46/0x2e
 31964 qmail-send CALL  write(0,0x804efc6,0x10)
 31964 qmail-send GIO   fd 0 wrote 16 bytes
       "status: exiting
       "
 31965 multilog CSW  resume kernel
 31965 multilog GIO   fd 0 read 16 bytes
       "status: exiting
       "
 31965 multilog RET   read 16/0x10
 31965 multilog CALL  gettimeofday(0xbfbfdb70,0)
 31965 multilog RET   gettimeofday 0
 31965 multilog CALL  write(0x5,0x804d834,0x2a)
 31965 multilog GIO   fd 5 wrote 42 bytes
       "@4000000038096be72b04042c status: exiting
       "
 31965 multilog RET   write 42/0x2a
 31965 multilog CALL  read(0,0x804daa0,0x400)
 31965 multilog CSW  stop kernel
 31964 qmail-send RET   write 16/0x10
 31964 qmail-send CALL  exit(0)
 31965 multilog CSW  resume kernel
 31965 multilog GIO   fd 0 read 0 bytes
       ""
 31965 multilog RET   read 0
 31965 multilog CALL  fsync(0x5)
 31965 multilog CSW  stop kernel
 31968 qmail-clean CSW  resume kernel
 31968 qmail-clean GIO   fd 0 read 0 bytes
       ""
 31968 qmail-clean RET   read 0
 31968 qmail-clean CALL  exit(0)
 31967 qmail-rspawn CSW  resume kernel
 31967 qmail-rspawn RET   select 1
 31967 qmail-rspawn CALL  sigprocmask(0x1,0x80000)
 31967 qmail-rspawn RET   sigprocmask 0
 31967 qmail-rspawn CALL  read(0,0x804c160,0x400)
 31967 qmail-rspawn GIO   fd 0 read 0 bytes
       ""
 31967 qmail-rspawn RET   read 0
 31967 qmail-rspawn CALL  exit(0)
 31965 multilog CSW  resume kernel
 31965 multilog RET   fsync 0
 31965 multilog CALL  fchmod(0x5,0x1e4)
 31965 multilog RET   fchmod 0
 31965 multilog CALL  exit(0)


Here is my /var/qmail/rc:
#!/bin/sh

# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.
# This is the default (use after execv env) qmail-start ./.Mailbox
splogger qmai
l


exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./.Mailbox /usr/local/bin/multilog t s100000 n10
/var/log/qmail &
#qmail-start ./.Mailbox sh -c 'accustamp | cyclog /var/log/qmail'

# end of /var/qmail/rc

Can you please suggest me something to fix this.
I don't really know what to do.


Thanks a lot for your time and cooperation.


-- 
"Security is not a state, but a process."

Reply via email to