[Unit] Description=Mount a directory using rclone After=network.target [Service] ExecStartPre=sh -c "fusermount -u /home/lx.nobackup/mnt/%i || exit 0" ExecStart=/usr/bin/rclone mount --vfs-cache-mode minimal --cache-dir /home/lx/.cache/rclone/%i %i: /home/lx.nobackup/mnt/%i # Restart every >2 seconds to avoid StartLimitInterval failure RestartSec=10 Restart=always [Install] WantedBy=default.target