Hi!
I just wanna share my .service file for mount a driver of rclone, because is always help for someone that starting.
I'm not an expert, so somethings that I'm using here maybe be a placebo. If you know more please share some thoughts about.
I'm using this to play files of google drive, without problem, in a raspberry pi 3b with LibreELEC 9.2.6 version.
You can find help about instalation of rclone here: RE: [Solved] Rclone and encryption
To create this you have to access LIbreELEC by ssh.
Use this command to create a file in the proper folder (the name of file I choose is "gdrive"):
nano /storage/.config/system.d/gdrive.service
put this text inside:
[Unit]
Deion=Google Drive (rclone)
After=network-online.target
[Service]
Type=notify
ExecStart=/storage/bin/rclone --allow-non-empty --allow-other mount name_of_your_drive_here: "path where you want to mount here" \
--config=/storage/.config/rclone/rclone.conf
--uid=1000 \
--gid=1000 \
--allow-other \
--umask=000 \
--vfs-cache-mode writes \
--vfs-cache-max-size=20G \
--drive-chunk-size=64M \
--cache-dir=/media/pi/USBDISK/rclone/vfs \
--dir-cache-time=1h
ExecStop=/bin/fusermount -u "path where you want to mount here"
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
Display More
Ctrl+x to save and y to confirm
Now run systemctl enable gdrive.service to enable the service and systemctl start gdrive.service to start it
Hope help!