Results 1 to 2 of 2

Thread: SNMP & Logger don't start in scripted restart

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default SNMP & Logger don't start in scripted restart

    Hey everybody, this is slightly like some things others have mentioned, but different enough that I figured I'd throw it out as a separate thread:

    When I upgraded from 5.08 to 5.011 on Ubuntu 6.06 LTS, everything started normally except for (1) a failure of Clam due to newer version (fixed), and (2) SNMP and Logger failed to start at the script end. Once I fixed clamAV and restarted Zimbra everything came up so I assumed (wrongly, it now seems) that everything is OK.

    I use the shell script backup method (the really simple version, pre some of the enhancements others have made), and part of the script is an su stopping and starting of Zimbra services. When they restart from the script, SNMP and Logger are stopped again. However if I log onto the command prompt and manually zmcontrol stop and start, they come up flawlessly.

    What is different about calling these same commands from a shell script, that causes this failure? Where in the logs do I even begin to look for errors?

    Thanks in advance for any suggestions!
    Cheers,

    Dan

  2. #2
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Follow-up: I was using my own shell script for backup, and in prior versions I had found that the command
    Code:
    sudo -u zimbra /opt/zimbra/bin/zmcontrol start
    was the only one that worked for me on Ubuntu with Zimbra 4.5.x. However, it seems with the newer version something about the way sudo calls the programs blows them up. I created a test batch for the sole purpose of stopping and starting the services, and watched them fail.

    The alternate syntax:
    Code:
    su - zimbra -c "/opt/zimbra/bin/zmcontrol start"
    did the job.

    I will watch the cron'ed run tonight before declaring victory, however. . .
    Cheers,

    Dan

Similar Threads

  1. Errors installing Outlook Connector
    By Tim G in forum Zimbra Connector for Outlook
    Replies: 57
    Last Post: 05-05-2011, 02:27 PM
  2. Replies: 5
    Last Post: 05-28-2009, 12:53 AM
  3. [SOLVED] Outlook no longer updating
    By jeremy.pratt in forum Zimbra Connector for BlackBerry
    Replies: 10
    Last Post: 05-30-2008, 03:22 PM
  4. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 10:11 PM
  5. Cannot start logger or snmp
    By hikenboots in forum Administrators
    Replies: 5
    Last Post: 01-16-2006, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •