Dropbox won't mount on startup (service on Ubuntu)

hi, not a linux expert but
--rc-no-auth \ should be --rc-no-auth

also, as per @Animosity022 script,
ExecStop=/bin/fusermount -u
should be
ExecStop=/bin/fusermount -uz

So I'm guessing the "/" in the service indicates there are more flags to come but, in this case, there's no more flags so I don't need it. I fixed that and got this error:

Jan 26 14:29:31 Fermi-Plex systemd[1]: /etc/systemd/system/dbrclone.service:15: Missing '='.

if you change the service file, re-post it...
which line is 15?

also, is this correct/
/usr/bin/rclone mount dbremote:/PMS, as what is the mount folder?
should it be
rclone mount dbremote:/PMS /media/dropbox

Assuming as pasting this in verbatim, you can't have blank spaces after lines.

The backslash \ is basically saying to continue the output to the next line and if the next line is blank, you have an error.

So that part should look like:

ExecStart=/usr/bin/rclone mount dbremote:/PMS \
--allow-other \
# This is the default port it runs on
--rc-addr :5573 \
# no-auth is used as no one else uses my server and it is not a shared seedbox

And the last line has no \ because there are no lines after it.

If the command is short enough, you also have the ability to make it one line. I break mine because it's long and I want to document it.

Thank you both for all the help. I've updated the service, this is a verbatim paste:


Description=Google Drive (rclone)
ExecStart=/usr/bin/rclone mount dbremote:/PMS /media/dropbox \
--allow-other \
--rc-addr :5573 \
ExecStop=/bin/fusermount -u /media/dropbox



When I reboot and service dbrclone status this is what I get:

   Loaded: loaded (/etc/systemd/system/dbrclone.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

You need to enable the service.

systemctl enable dbrclone
1 Like

You're the best - wow, I've been hacking at this forever and now:

● dbrclone.service - Google Drive (rclone)
   Loaded: loaded (/etc/systemd/system/dbrclone.service; enabled; vendor preset:
   Active: active (running) since Tue 2021-01-26 14:42:28 UTC; 25s ago
 Main PID: 1057 (rclone)
    Tasks: 14 (limit: 4915)
   CGroup: /system.slice/dbrclone.service
           └─1057 /usr/bin/rclone mount dbremote:/PMS /media/dropbox --allow-oth

Jan 26 14:42:28 Fermi-Plex systemd[1]: Started Google Drive (rclone).

Thanks for your patience with me, I'm really new to all this. Can't tell you how much I appreciate the help.

** I'm struggling with a totally different service (xteve) - is there an online forum for help with things like this (obviously not here as this isn't rclone related) **

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.