To schedule a script to run on your Synology follow these steps:
Note: You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
Schedule toggle_reset_button.sh disable to run at boot:
- Go to Control Panel > Task Scheduler > click Create > and select Triggered Task.
- Select User-defined script.
- Enter a task name like Disable Reset Button.
- Select root as the user (The script needs to run as root).
- Select Boot-up as the event that triggers the task.
- Leave Enable ticked.
- Click Task Settings.
- Optionally you can tick Send run details by email and Send run details only when the script terminates abnormally then enter your email address.
- In the box under User-defined script type the path to the script.
- e.g. If you saved the script to a shared folder on volume 1 called scripts you'd type:
- /volume1/scripts/toggle_reset_button.sh disable
- Click OK to save the settings.
Schedule toggle_reset_button.sh enable to run manually:
- Go to Control Panel > Task Scheduler > click Create > and select Scheduled Task.
- Select User-defined script.
- Enter a task name like Enable Reset Button.
- Select root as the user (The script needs to run as root).
- Select Boot-up as the event that triggers the task.
- Untick Enable.
- Click Task Settings.
- Optionally you can tick Send run details by email and Send run details only when the script terminates abnormally then enter your email address.
- In the box under User-defined script type the path to the script.
- e.g. If you saved the script to a shared folder on volume 1 called scripts you'd type:
- /volume1/scripts/toggle_reset_button.sh enable
- Click OK to save the settings.