I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem:
Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup but the problem is that right now I cannot restart the server (other users are using it actively).
So I am trying to start dropbox via SSH which works and dropbox starts to sync, but as soon as I disconnect from SSH dropbox stops runnning. I tried running it on a detached screen, using ($HOME/.dropbox-dist/dropboxd &)&
and they all stop when I log out from SSH.
I tried doing service start but it seems not to work and I don't know why..?
$ sudo service dropbox start
[sudo] password:
Starting dropbox...
$ dropbox status
Dropbox isn't running!
I followed the instructions:
sudo chmod +x /etc/init.d/dropbox
sudo update-rc.d dropbox defaults
from http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment#debianubuntu and I got no error messages. Please help.
I don't care as much about starting the process at server restart, as long as I can launch dropbox via ssh and keep it runnning after i log out.
Thank you
UPDATE & ANSWER: thanks a lot for all your answers. Thanks to user Nixgrrrl's comment, I realize that it was because I was using ssh -X (the default on my system). As soon as I did normal ssh, trying the humble dropbox start &
worked :)
disown` didn't work: after i logout from SSH it stops dropbox :( note: disown was on another line (another command from the first one)
– newmathwhodis Jul 22 '15 at 18:52dropbox start -i > /dev/null
. Does that help here? Try starting it like that and backgrounding it and then disowning it or running it w/nohup
. I don't usedropbox
anymore really so have no way to replicate this now. – slm Jul 23 '15 at 06:04