Hi thanks for the help.
-
I followed the exact same process Here on a minix u22-xjmax.
-
I can then mount rclone manually using this code:
/storage/.config/rclone/rclone mount D[My Gdrive]: [destination folder]
3 I want now to now autostart on boot rclone mount but this is where I’m stuck. The link above uses this service:
[Unit]
Description=RClone Gdrive
After=network-online.target
[service]
Type=simple
Environment=PATH=/storage/.opt/bin:/.opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStartPre=/bin/mkdir -p /var/media/Gdrive
ExecStartPre=/bin/mkdir -p /storage/.config/rclone/logs
ExecStartPre=/bin/mkdir -p /storage/.config/rclone/cache
ExecStart=/storage/.config/rclone/rclone mount
--log-file /storage/.config/rclone/logs/rclonemount.log
--log-level INFO
--allow-other
--allow-non-empty
--tpslimit 10
--tpslimit-burst 10
--dir-cache-time=48h
--buffer-size=64M
--attr-timeout=1s
--vfs-read-chunk-size=64M
--vfs-read-chunk-size-limit=2G
--vfs-cache-max-age=5m
--vfs-cache-mode=writes
--cache-dir /storage/.config/rclone/cache
--config=/storage/.config/rclone/rclone.conf
Gdrive: /var/media/Gdrive
ExecStop=/bin/fusermount -uz /var/media/Gdrive
Restart=on-abort
[Install]
WantedBy=default.target
I tried to emulate it and place it in config/system.d folder and enable/start it with
systemctl enable gdrive.service
systemctl start gdrive.service
But keep getting this error on system status:
○ [name].service - RClone [name]
Loaded: bad-setting (Reason: Unit [name].service has a bad u
○ [name].service - RClone [name]
Loaded: bad-setting (Reason: Unit [name].service has a bad unit file setting.)
Active: inactive (dead)
Apr 29 12:06:12 CoreELEC systemd[1]: /storage/.config/system.d/[name].service:4: Unknown section 'service'. Ignoring.
Apr 29 12:06:19 CoreELEC systemd[1]: /storage/.config/system.d/[name].service:4: Unknown section 'service'. Ignoring.
Apr 29 12:06:19 CoreELEC systemd[1]: [name].service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Apr 29 12:07:12 CoreELEC systemd[1]: /storage/.config/system.d/[name].service:4: Unknown section 'service'. Ignoring.