Script Automatic Restart Services when Zimbra Stopped/Not Running

Posted by

If you have Zimbra and running on VMware, you can configure automatic restart when one or some services not running/stopped with VMware HA Script. You can find VMware HA Script from here : https://wiki.zimbra.com/wiki/VMware_HA_script_in_Zimbra_Collaboration

If you have Zimbra and not running on VMware and want to automatic restart when one or some services not running/stopped, you can try this step 😉

# Download script check Zimbra status

cd /opt/zimbra
wget -c --no-check-certificate https://raw.githubusercontent.com/imanudin11/script/master/check_zimbra.pl
chmod +x check_zimbra.pl

# Download script automatic restart services

wget -c --no-check-certificate https://raw.githubusercontent.com/imanudin11/script/master/otomatis_restart_zimbra.sh
chmod +x otomatis_restart_zimbra.sh

Please try to stop some services of Zimbra and execute otomatis_restart_zimbra.sh script

Finally, you can configure the script with crontab

Good luck and hopefully useful 🙂

8 comments

  1. Hi Iman,

    Any procedure for doing the automatic restarts in Zimbra intalled directly on physical server?

    Thanks in advance.

  2. Hi imaudin, you can add in the script that first stop the zmconfigdctl and then start it , How would you do it? , this in case a process is running

    su – zimbra -c ‘zmconfigdctl stop’
    su – zimbra -c ‘zmconfigdctl start’

  3. hi imaudin,
    How about if all services are running but on the zimbra web admin shows that all services are not running
    is this problems related with high number of mail stuck in deferred ?

    thank you

    1. @tkatie I see that your message is recent so you may experience the same as I: after installing Zimbra 8.7.11 Patch 11 I get warnings in web Admin Console that some services are not running, although all services are fine in command console.

      1. Looking further in Zimbra forums, I see that this happens to other people now, and it happened before. Most likely cause is syslog configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.