Script Automatic Restart Services when Zimbra Stopped/Not Running

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 🙂


  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’

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.