Erro ao tentar automatizar mount onedrive

Estou utilizando o Rclone para montar uma unidade do onedrive.
Foi configurado tudo corretamente. Utilizando o rclone-browser consigo montar a unidade e utilizar.
Ao tentar automatizar a montagem pelo systemd ele nao funciona.

Alguem consegue me ajudar a identificar o erro da configuração?

Description=OneDrive (rclone)

ExecStart=/usr/bin/rclone mount
--cache-info-age=60m onedrive:/ /home/jason/OneDrive
ExecStop=/bin/fusermount -u /home/jason/onedrive


I am using Rclone to mount a one-drive unit. Everything was set up correctly. Using the rclone-browser I can mount the unit and use it. When trying to automate the assembly by systemd it does not work. Can someone help me to identify the configuration error?

Your config is missing \ at the end of the continued lines

ExecStart=/usr/bin/rclone mount
--config=/home/jason/.config/rclone/rclone.conf \
--cache-writes \

What does journalctl say?

1 Like

Obrigado pela resposta.

Fiz a automação pelo comando sh -c "rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive" rodando na inicialização do sistema. Ficou ate mais simples.

Thanks for the answer. It worked. I did the automation using the command sh -c "rclone --vfs-cache-mode writes mount OneDrive: ~ / OneDrive" running at system startup. It became even simpler.

Yes that works too! Systemd can restart rclone if it dies but a nice simple script you understand is good too.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.