Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-2009, 10:48 AM
Member
 
Posts: 12
Default logrotate - zmlogswatchctl: line 114: kill: (1054) - No such process

Has anyone else seen this? It seems to be somewhat related to some previous postings (e.g. [SOLVED] Daily Message). In my case, logswatch seems to be running but I occasionally receive some odd emails from the cron daemon.

I get a daily email from the cron daemon. Most of the time it just indicates that some services have been stopped and restarted, which looks normal.

Code:
/etc/cron.daily/logrotate:

Stopping logswatch...done.
Starting logswatch...done.
Stopping swatch...done.
Starting swatch...done.
Stopping zmmtaconfig...done.
Starting zmmtaconfig...done.
Occasionally the email contains error messages that appear to be due to a loop in zmlogswatchctl attempting to kill processes that are no longer running.

Code:
/etc/cron.daily/logrotate:

Stopping logswatch.../opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1054) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1055) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1056) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1057) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1058) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1059) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1056) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1057) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1058) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1059) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1057) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1058) - No such process
/opt/zimbra/bin/zmlogswatchctl: line 114: kill: (1059) - No such process
done.
Starting logswatch...done.
Stopping swatch...done.
Starting swatch...done.
Stopping zmmtaconfig...done.
Starting zmmtaconfig...done.
Is this an indication of a problem or just an artifact of the way zmlogswatchctl works? I am not seeing any other indications of a problem.

It appears that the following code segment in zmlogswatchctl builds a list of processes to kill (in the while loop) and some of them disappear before they are killed (in the for loop). The error messages are being generated by the line that reads "kill -15 ${ids[$i]}" (which is line 114).

Code:
... code fragment from zmlogswatchctl ...
if [ x"$os" = "xLinux" ]; then
  index=0;quit=0
  ids[$index]="$pid"
  while [ $quit -eq 0 ]; do
    ((index++))
    ids[$index]=$(ps -o pid --ppid ${ids[$index-1]} | grep -v PID | tr \\n ' ')
    if [ ! "${ids[$index]}" ]; then
      ((quit++))
    fi
  done
  for i in $(seq 0 ${#ids[@]}); do
    if [ "${ids[$i]}" ]; then
      kill -15 ${ids[$i]}
    fi
  done
else
  kill -9 $pid
fi
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.