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!
-chris


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!
-chris