Share the Knowledge!

Daemontools is a set of Unix tools to run and supervise processes. It was written by D. J. Bernstein. It can be downloaded here:

Daemontools allows you to run the dropbox daemon under a separate user using the setuidgid program that is included. Daemontools will create a directotry /service where it will look for applications that it will supervise.

Create the user you want to run Dropbox

adduser or useradd depending on your system

Login on the server with the user you created above.

Logged in as the new user, follow the guide Dropbox in an entirely text-based Linux environment (experimental) and install Dropbox into the new user’s home directory.

Create the daemontools control file

Substitute user with the account name you created above.

cd /service
mkdir dropbox-user
cd dropbox-user
echo "#!/bin/sh" > run
echo "HOME=/home/user exec setuidgid user /home/user/.dropbox-dist/dropboxd" >> run
chmod +x run

This will run Dropbox immediately and also ensure that Dropbox is always running when the computer is up.

To restart the Dropbox daemon:

svc -t /service/dropbox-user

To stop the Dropbox daemon:

svc -d /service/dropbox-user

To start the Dropbox daemon:

svc -u /service/dropbox-user

Share the Knowledge!

Helpful(0) Unhelpful(0)