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
📦 Rclone Mount via systemd User Service
Setup Instructions
1. Create the user systemd service
Paste this into the file:
2. Reload the user systemd daemon
3. Enable and start the service
Replace
<remote>with your rclone remote name (example:gdrive-muslim-indomode):Example:
systemctl --user enable --now rclone@gdrive-muslim-indomode4. Check service status
or
If it shows
active (running), the mount is successful!📜 View Logs
cat /tmp/rclone-<remote>.logtail -f /tmp/rclone-<remote>.logjournalctl --user -u rclone@<remote>journalctl --user -u rclone@<remote> -f⚡ Notes
/tmp/and will be deleted on reboot unless you move them to a permanent location.✅ Example for
gdrive-muslim-indomode/home/muslim/mnt/gdrive-muslim-indomode/tmp/rclone-gdrive-muslim-indomode.logsystemctl --user enable --now rclone@gdrive-muslim-indomode