Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to stop / start dropbox in the Apple Terminal?

dropbox stop works when using Oracle Linux, but not within Mac OS 10.6.8.

share|improve this question

2 Answers 2

up vote 7 down vote accepted

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"
share|improve this answer
    
This doesn't kill a hanging DropBox icon in the menu bar for me. It gives 30:34: execution error: Dropbox got an error: AppleEvent timed out. (-1712) –  Jeroen Wiert Pluimers Apr 12 at 6:52
    
@Jeroen You might have to use a kill command then, with the process ID of Dropbox. Or perhaps restart the machine. –  slhck Apr 12 at 7:20
    
killall works; see my other answer that has an alias for restarting Dropbox (first trying the friendly way, then the brutal way) –  Jeroen Wiert Pluimers Apr 12 at 7:26

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 http://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:

NB: The 300% enlarged spinning wheel is from WikiMedia.
enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.