In addition to the answer by slhck:
When the DropBox menu icon hangs and shows the rainbow wheel/spinning wheel then the below command will kill Dropbox:
killall Dropbox
Then you can start it with open -a "DropBox"
like https://superuser.com/users/48078/slhck mentioned.
This is the alias I have defined for restarting Dropbox:
alias restartDropBox="osascript -e 'tell application \"Dropbox\" to quit';killall Dropbox;open -a \"Dropbox\""
Note the:
\
to escape some double quotes- chaining of commands through
;
(not&&
as the first and second might fail)
NB: The 300% enlarged spinning wheel is from WikiMedia.
Image may be NSFW.
Clik here to view.