Code: Select all
# begin activesync nightly maintenance
# shutdown Remote Client Interface
/opt/scalix/bin/omoff -w -d0 rci 2>&1 # redirect stderr to stdout (because omoff always redirects output to stderr even in non error cases)
sleep 10
# shutdown Tomcat...
/etc/init.d/scalix-tomcat stop # on Debian - might be OS dependend
sleep 10
# cleanup IMAP Cache...
# ! change XX in the path below to the first and last letter of the server name: e.g. "server": XX = sr
find /var/opt/scalix/XX/s/user/*/imap-cache/* -exec rm {} \;
sleep 10
# restart Tomcat...
/etc/init.d/scalix-tomcat start # on Debian - might be OS dependend
sleep 10
# restart Remote Client Interface
/opt/scalix/bin/omon rci 2>&1 # stderr has to be redirected to stdout (because omon redirects output to stderr even in non error cases)
sleep 10
# prepares imap cache from scratch
sximapprep -a sxadmin -p ***********
I thought I was in the clear finally, but one of the bosses (using iPhone 4 with iOS 4.3.1) told me that he wasn't getting items syncing unless he manually went into calendar or mail and waited for it to refresh.. then after doing so.. the new items would appear that he had entered hours ago. Is this a 'push' related issue I'm guessing? I don't seem to notice it being a problem yet on iPhone 3GS's with iOS 4.3.1 but I don't know if the phone or iOS is even the issue here.
Since running the processes in the script seem to flush out any problems with syncing, I would like to run it more often.. say every hour or so or maybe more frequently. However, it gives you a connection error momentarily if you happen to be using your phone at that particular moment.. for obvious reasons.. Is there a way that I can omit part of the script and keep connectivity therefor getting rid of the error on the phones?
Thanks for any help.