On the Synology, login to the web gui, go to control panel, Task Scheduler.
Click on the create dropdown, triggered task.
Fill out the description name and everything. make sure you specify the shell script on the bottom including the path, and make sure you have the event as boot-up.
Of course once you have that there, do the same thing for an unmount script at shutdown.
I’ve just discovered the combination of ACD and rclone and I would like to have an script to mount my ACD at boot on my Synology. The thing is that I have no idea of how to make a script so… could you tell me what I have to do?
My script, for example in /volume1/media/mount.sh only contain
"
#!/bin/ash
/usr/bin/rclone mount acd_enc: /volume1/folder/media/ -v --no-modtime --retries 40 --allow-other
"
then connect on SSH you have to execute this make the script executable ==>
sudo chmod +x /volume1/media/mount.sh
Then Go to Task scheduler, Create new planned task
user : root
event : Boot
Script : sh /volume1/media/mount.sh
If you want logs you can create a file somewhere you can easy accesand replace the script in the scheduler task by
sh /volume1/media/mount.sh >> /somewhere/you/can/easy/acces/MountScript.log 2>&1