I'm trying to get rclone to automount with Anomosity's setup for plex. When I load it manually, it works like a charm, however, once I start doing the service mount, it goes sideways. One thing I've noticed is it will try and start multiple rclone services it seems.
When I mount without the service start, I use this:
rclone mount gcache: /mnt/gclone
--allow-other
--dir-cache-time 96h
--drive-chunk-size 32M
--log-level INFO
--timeout 1h
--umask 002
--rc
In the service file I use:
[Unit]
Description=RCloneService
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=0
[Service]
Type=notify
Environment=RCLONE_CONFIG=/root/.config/rclone/rclone.conf
ExecStart=/usr/bin/rclone mount gcache: /mnt/gclone
--config /root/.config/rclone/rclone.conf
--allow-other
--dir-cache-time 96h
--drive-chunk-size 32M
--timeout 1h
--umask 002
--rc
ExecStop=/bin/fusermount -uz /mnt/gclone
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
Fuser Service
[Unit]
Description = /gclone MergerFS mount
After=gmedia-rclone.service
RequiresMountsFor=/mnt
[Mount]
What = /mnt/speed:/mnt/gclone
Where = /
Type = fuse.mergerfs
Options = defaults,sync_read,auto_cache,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff
[Install]
WantedBy=multi-user.target
rclone config
[gdrive]
type = drive
client_id = hidden
client_secret = hidden
scope = drive
token =
team_drive =
[gcache]
type = cache
remote = gdrive:
chunk_size = 5M
info_age = 2d
chunk_total_size = 1G