My guesses are:
You specified the wrong path to the
./ always refers to the current directory, which is not changed by using
sudo -H. You would still have to use
Dropbox is refusing to start because of
end script in the command line. It is not part of the command – the original Upstart example was supposed to be of several lines:
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
# Without next line DB does not sync non ASCII characters (ubuntu 10.04-x86_64, db 0.7.110)
exec sudo -H -u dropbox ./.dropbox-dist/dropbox
As you can see, the Upstart config cd's to
/home/dropbox before referring to
For systemd, create a
Description=Dropbox as a system service
# 'LANG' might be unnecessary, since systemd already sets the
# locale for all services according to "/etc/locale.conf".
# Run `systemctl show-environment` to make sure.
systemctl start dropbox.service to start the service now.
systemctl enable dropbox.service to make it start automatically at boot.
If you edit the unit file after it has been used once, run
systemctl daemon-reload to clear the cached-in-memory one.