Autostart rclone mount using systemd

Create the following file under ~/.config/systemd/user/rclone-dropbox.service:

Description=Dropbox (rclone)
# Make sure we have network enabled
ExecStart=/usr/bin/rclone mount –vfs-cache-mode full Dropbox: Dropbox
# Perform lazy unmount
ExecStop=/usr/bin/fusermount -zu %h/Dropbox
# Restart the service whenever rclone exists with non-zero exit code
# Autostart after reboot

Reload the user services, enable and start the new service:

$ systemctl --user daemon-reload
$ systemctl --user enable --now rclone-dropbox

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.