I have established a serve FTP connection with Google Drive with the following command in rclone:
rclone serve ftp hello-drive:/ --user new --pass new
but after the system reboots, I have to run that command again. That's why I wrote this file to re-run serve FTP in this directory /etc/systemd/system/gdrive.service:
[Unit]
Description=rclone for hello-drive
AssertPathIsDirectory=/
After=networking.service
[Service]
Type=simple
ExecStart=rclone serve ftp --config=/home/root/.config/rclone/rclone.conf hello-drive:/ --user new --pass new
ExecStop=/bin/fusermount -u /
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
I can enable it, but when I try to start it with this command
systemctl start gdrive.service
I got this error:
Failed to start gdrive.service: Unit gdrive.service is not loaded properly: Exec format error.
You don't want this for rclone serve ftp - just remove the line.
This usually means that the thing you are trying to run (rclone) is not executable, or maybe not found - try putting in a full path in, or you downloaded the wrong type of binary (amd64 for an arm64 machine).
Thanks sir
I was cleaned that line, but issue not resolved. Can you look at gdrive.service file again. I think the gdrive.service file is wrong. Or do you have any ideas about this issue?