Hi,
I'm running into a really strange problem and I'm out of ideas. The good thing is I've been able to reproduce this problem both in my production and VM environments.
I'm trying to use a bash script to stop, and start zimbra via the crontab.
But what happens is, when zimbra starts, some of the services fail to load. I have to manually retry zmcontrol stop/start several times to everything to load fine again.
IF I run the same script manually, everything works just fine. Any help would be appreciated.
Here is my simple script being run as the zimbra user:
/opt/zimbra/bin/zmcontrol stop > /opt/scripts/zmcontrol_stop.out
#Wait 45 sec for all services to properly shut down
sleep 45
/opt/zimbra/bin/zmcontrol start > /opt/scripts/zmcontrol_start.out
Output of zmcontrol_stop.out
Code:
[zimbra@gp-sf1-xen01-centos scripts]$ tail -f zmcontrol_stop.out
Stopping snmp...Done.
Stopping cbpolicyd...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping ldap...Done.
Output of zmcontrol_start.out
Code:
[zimbra@gp-sf1-xen01-centos scripts]$ tail -f zmcontrol_start.out
Host mail.leotest.com
Starting ldap...Done.
Starting zmconfigd...Done.
Starting logger...Failed.
Starting logswatch...failed.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done. Again, if I run this script manually as the zimbra user, everything works perfectly fine.
Both VM and production environments are running zimbra 7.1.3 under CentOS in a XEN virtual environment