root@up2you:/tmp# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
rclone mount :::
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target
BindsTo=mnt.mount
[Service]
Type=notify
Environment=RCLONE_CONFIG=/mnt/config/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount2 Encrypt_TD1: /mnt/stuff/gdrive \
--allow-other \
--buffer-size 256M \
--dir-cache-time 1000h \
--log-level INFO \
--log-file /tmp/rclone_mount.log \
--poll-interval 15s \
--timeout 1h \
--dir-perms 0777 \
--file-perms 0777 \
--umask 0000 \
--filter-from /mnt/config/rclone/filter-mount \
--user-agent neunghaha28app \
--rc \
--rc-addr 127.0.0.1:5572
ExecStop=/bin/fusermount -uz /mnt/stuff/gdrive
Restart=on-failure
mergerfs :::
[Unit]
Description=gmedia mergerfs mount
Requires=gmedia-rclone.service
After=gmedia-rclone.service
RequiresMountsFor=/mnt/stuff/local
RequiresMountsFor=/mnt/stuff/gdrive
[Service]
Type=forking
ExecStart=/usr/bin/mergerfs /mnt/stuff/local:/mnt/stuff/gdrive /mnt/gmedia -o rw,async_read=false,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=partial,dropcacheonclose=true
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target