Skip to content

Instantly share code, notes, and snippets.

@rodhfr
Last active December 22, 2025 04:19
Show Gist options
  • Select an option

  • Save rodhfr/1d1d6ca8c4edcb2c982d0207b6c40d82 to your computer and use it in GitHub Desktop.

Select an option

Save rodhfr/1d1d6ca8c4edcb2c982d0207b6c40d82 to your computer and use it in GitHub Desktop.
sudo nvim /etc/fuse.conf
# /etc/fuse.conf
# mount_max = 1000
user_allow_other
cd ~/.config/systemd/user/
nvim rclone-NAME.service
[rodhfr@vmi2960364 user]$ cat rclone-gdrive.service
[Unit]
Description=gdrive mount
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount --vfs-cache-mode full --vfs-cache-max-size 10G --allow-other souzafrodolfo: /gdrive
ExecStop=/usr/bin/fusemount -zu /gdrive
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target
[rodhfr@vmi2960364 user]$ cat rclone-smb.service
[Unit]
Description=smb mount
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount --vfs-cache-mode full --vfs-cache-max-size 10G --allow-other smb: /smb
ExecStop=/usr/bin/fusemount -zu /sminio
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target
systemctl --user daemon-reload
systemctl --user enable --now rclone-*.service
systemctl --user status rclone-*.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment