Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm using Debian 6 and Dropbox. I followed these commands to install it.

When I run ~/.dropbox-dist/dropboxd — Dropbox works and stuff. Problem is that when I close terminal or, even worse, — reboot... Dropbox stops to work and I need to run that deamon again.

Are there any way I say to computer to automatically start that daeamon in background?

share|improve this question
Have you tried the python script linked below on that same website? It seems to be targeted to controlling the daemon. (I don't have access to a debian-based machine ATM to try it myself though). – Hugo Apr 3 '12 at 16:58
Thanks! I will try it. – daGrevis Apr 3 '12 at 19:15
Perhaps nohup? unix.stackexchange.com/questions/56495/… – njsg Feb 7 at 14:43

3 Answers

up vote 14 down vote accepted

If you're running the daemon from your own account, start it at boot time with Cron. Run crontab -e to edit your crontab file and add the line

@reboot ~/.dropbox-dist/dropboxd
share|improve this answer

run the command in this way:

($HOME/.dropbox-dist/dropboxd &)&

this will detach the process from tha actual terminal and put it in real background.

You will still have to start it back up manually after a reboot, though.

share|improve this answer

I added the following lines to the end of my .profile file. I prefer to have the computer boot at terminal. However, if I start X11 after this, the dropbox applet is not displayed on the system tray.

dropbox running
rv=$?
if [ $rv -eq 0 ]; then
    dropbox start;
fi
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.