View Single Post
  #4 (permalink)  
Old 11-13-2007, 11:05 PM
SSS SSS is offline
Intermediate Member
 
Posts: 20
Default

Thanks Phoenix, that solved the perl rsync issue, but the script then started complaining about needing explicit package names. This perl stuff is going way over my head

I think I'll try and get the bash script going instead.

If I run this script as the Zimbra user when the status checks runs, everything is ok and 'running'
Code:
echo Stopping Zimbra services...
zmcontrol stop
sleep 15

echo Starting Zimbra services...
zmcontrol start
sleep 15

echo Showing Zimbra services status...
zmcontrol status
echo Done!
But if I run the following script as user root, when the status check runs it says the stats module is stopped:
Code:
echo Stopping Zimbra services...
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
sleep 15

echo Starting Zimbra services...
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
sleep 15

echo Showing Zimbra services status...
sudo -u zimbra /opt/zimbra/bin/zmcontrol status
echo Done!
I'm a bit stumped as to why stats doesn't start up.
Reply With Quote