How to stop / start dropbox in the Apple Terminal?
dropbox stop works when using Oracle Linux, but not within Mac OS 10.6.8.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Contrary to Linux, the main Dropbox functionality is in Dropbox.app itself. You wouldn't want to kill the background daemon (
dbfseventsd), which does not have a command-line interface. So, it's not the same as in Linux.
The safest way to quit Dropbox is to run the following:
osascript -e 'tell application "Dropbox" to quit'
You can start it again by calling:
open -a "Dropbox"
When the DropBox menu icon hangs and shows the rainbow wheel/spinning wheel then the below command will kill 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\""
\to escape some double quotes
&&as the first and second might fail)
NB: The 300% enlarged spinning wheel is from WikiMedia.