This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.
Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.
mkdir ~/mnt/dropboxThe --allow-other option is required in order to work in many desktop environments. This flag must be enabled by adding user_allow_other to /etc/fuse.conf. If you aren't using a desktop environment, such as on a server, this option can be omitted.
Save the [email protected] file in ~/.config/systemd/user/
Make sure you include the @. This is required to work.
As your normal user, run:
systemctl --user daemon-reloadYou can now start/enable each remote by using rclone@<remote>
systemctl --user enable --now rclone@dropbox
@jhub95 I can't say I've ever tested using a subdirectory, but looking at the docs for the rclone mount command, you'll probably want to edit line 28 of the service file to remove the
:so you can specify it manually.Keep in mind that if you do this you'll likely have to update anything that's not using a subdirectory so the remote ends with a
:like sosystemctl --user enable rclone@remote: