Run Rclone before Login

Hello, I trying to run Rclone before login. The OS is debian, working with GoogleDrive.

It works fine when the login is done, but I need run before it.

Hope you can give me an advise to get it!

This is the file for the service:

[Unit]
Description=rclone: Remote FUSE filesystem for cloud storage config %i
Documentation=man:rclone(1)

[Service]
Type=notify
ExecStartPre=/bin/mkdir -p %h/mnt/%i
ExecStart=
/usr/bin/rclone mount
--allow-other
--drive-acknowledge-abuse=true
--fast-list
--vfs-cache-mode writes
--vfs-cache-max-size 100M
--umask 0777
%i: %h/mnt/%i
ExecStop=/bin/fusermount -u -z %h/mnt/%i
ExecStop=/bin/rmdir %h/mnt/%i
Restart=on-failure
[Install]
WantedBy=default.target

Thank you!

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