Restart dropbox-daemon on startup

I have several encrypted disks that I mount manually using a script after starting up. One of these drives contains my Dropbox folder.

I need to check if dropbox works when installing a drive so that I can stop the dropbox and then run it again so that it syncs correctly.

This is what I have so far, but I cannot get it to stop the dropbox if it is already running.

#!/bash/rc
if ~/dropbox.py running && [ $? -eq 1 ]; then
    ~/dropbox.py stop
else
    ~/dropbox.py start
fi
+5
source share
1 answer

Try

killall dropbox

! SIGTERM, . , Dropbox , , . ,

killall -u myusername dropbox

:

killall -u "$(whoami)" dropbox

, ,

killall -u "$USER" dropbox

:, , . , . , ( killall ). , , dropbox ( , ), , . .

+6

All Articles