What is the problem you are having with rclone?
Rclone doesn't mount the drive properly when running in a systemd service that's intented to start after network, the command (ExecStart) runs fine on a normal console
rclone v1.69.0
- os/version: arch (64 bit)
- os/kernel: 6.12.9-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: dynamic
- go/tags: none
Current Version as in 20.01.2025
Google Drive Storage
rclone.conf
[gdrive]
type = drive
scope = drive
token = XXX
team_drive =
### Double check the config for sensitive info before posting publicl
rclone-drive.service
[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/dtexetd/.config/rclone/rclone.conf
ExecStart=/usr/bin/rclone mount --vfs-cache-mode full gdrive: /home/dtexetd/Gdrive
ExecStop=/bin/fusermount -u /home/dtexetd/Gdrive
Restart=on-failure
[Install]
WantedBy=default.target
after that I executed
systemctl enable rclone-drive.service
systemctl start rclone-drive.service
The problem:
ls -la
drwx------ 37 dtexetd dtexetd 4096 Jan 20 12:42 .
d????????? ? ? ? ? ? Gdrive
systemctl status rclone-drive.service
rclone-drive.service - RClone Service
Loaded: loaded (/usr/lib/systemd/system/rclone-drive.service; enabled; preset: disabled)
Active: active (running) since Mon 2025-01-20 12:46:10 WET; 1min 44s ago
Invocation: 0c324021126a432499d534d7de7bf78b
Main PID: 6225 (rclone)
Status: "[12:47] vfs cache: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)"