Ok so here is what I'm getting:
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra stop
+ command shutdown
+ su - zimbra -c 'zmcontrol shutdown </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=0
+ exit 0
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra start
+ command startup
+ su - zimbra -c 'zmcontrol startup </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=0
+ exit 0
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra stop
+ command shutdown
+ su - zimbra -c 'zmcontrol shutdown </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=0
+ exit 0
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra start
+ command startup
+ su - zimbra -c 'zmcontrol startup </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=0
+ exit 0
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra stop
+ command shutdown
+ su - zimbra -c 'zmcontrol shutdown </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=1
+ exit 1
courriel:/opt/zimbra/log# echo $?
1
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra start
+ command startup
+ su - zimbra -c 'zmcontrol startup </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=0
+ exit 0
courriel:/opt/zimbra/log# echo $?
0
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra stop
+ command shutdown
+ su - zimbra -c 'zmcontrol shutdown </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=1
+ exit 1
courriel:/opt/zimbra/log# echo $?
1
courriel:/opt/zimbra/log# sh -x /etc/init.d/zimbra start
+ command startup
+ su - zimbra -c 'zmcontrol startup </dev/null >>/opt/zimbra/log/startup.log 2>&1'
+ RETVAL=0
+ exit 0
courriel:/opt/zimbra/log#
As you can see, the problem is intermittant.
And I just noticed that the problem :
Host courriel.mydomain.ca
Stopping antispam...Done
Stopping antivirus...Done
Stopping ldap...Done
Stopping logger...Done
Stopping mailbox...Done
Stopping mta...FAILED
Stopping snmp...Done
Stopping spell...Done
is back...
Of course I could put at the end of /etc/init.d/zimbra,
"exit 0" instead of the current "exit $RETVAL".
But I don't feel right to do so.
What do you think? |