Article 51K1A Trying to run rclone command at start-up Debian via /etc/rc3.d

Trying to run rclone command at start-up Debian via /etc/rc3.d

by
userzero
from LinuxQuestions.org on (#51K1A)
Hello Everyone,

I'm trying to get rclone to auto-mount to Google Drive at system startup but am having some trouble. I put this command in /etc/init.d:

rclone mount --allow-non-empty Polaris: /mnt/Polaris ("Polaris" is my mount directory point in /mnt)

When I run this command manually from the command line it mounts successfully.
I placed that command in an executable file in /etc/init.d and then created a soft link to it in /etc/rc3.d
like this:

ln -s ../init.d/mount-remote S01mount-remote

Again, the file is executable via chmod 755 and resides in /etc/init.d:

-rwxr-xr-x 1 root root 53 Apr 1 16:11 mount-remote

I restart the system and run the "mount" command and don't see it listed. Again, if I just run the command manually, "mount" shows that it is indeed mounted. I'm not sure what I'm missing here. Anyone have any ideas?

Thanks Much!

-chrislatest?d=yIl2AUoC8zA latest?i=jn7foCjBkDY:1DfQNI3i13A:F7zBnMy latest?i=jn7foCjBkDY:1DfQNI3i13A:V_sGLiP latest?d=qj6IDK7rITs latest?i=jn7foCjBkDY:1DfQNI3i13A:gIN9vFwjn7foCjBkDY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments