This is the fastest and least buggy setup i've been able to use for Plex and rclone mount so far.
Please let me know if i've done anything wrong
[Unit]
Description=rclonemnt
AssertPathIsDirectory=/mnt/drive
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount gcache: /mnt/drive --config=/root/.config/rclone/rclone.conf --allow-other --gid=1000 --uid=1000 --bind xxx.xxx.xxx.xxx --drive-chunk-size 64M --dir-cache-time 72h --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit off --fast-list --cache-chunk-path=/root/rclone-cache --cache-db-path=/root/rclone-cache --log-file=/var/log/rclone.log --umask 002 --buffer-size 0M --rc --log-level INFO
ExecStop=/bin/fusermount -uz /mnt/drive
Restart=on-abort
ExecStartPre=/bin/sleep 10
[Install]
WantedBy=default.target
[gcache]
type = cache
remote = drive:
plex_url = http://localhost:32400
plex_username = xxx
plex_password = xxx
chunk_size = 16M
plex_token = xxx
db_path = /home/rclone/rclone-cache
chunk_path = /home/rclone/rclone-cache
info_age = 2d
chunk_total_size = 20G
db_purge = true
[drive]
type = drive
client_id = xxx
client_secret = xxx
scope = drive
token = xxx
use_trash = false
chunk_size = 16M