From 17a9e5271126c2237a16107357ee72133bd93988 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sun, 26 Feb 2023 17:37:59 +1100 Subject: [PATCH] Create how_to_schedule.md --- how_to_schedule.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 how_to_schedule.md diff --git a/how_to_schedule.md b/how_to_schedule.md new file mode 100644 index 0000000..9319eb5 --- /dev/null +++ b/how_to_schedule.md @@ -0,0 +1,18 @@ +# How to schedule a script in Synology Task Manager + +To schedule a script to run on your Synology at boot-up or shut-down 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. + +1. Go to **Control Panel** > **Task Scheduler** > click **Create** > and select **Triggered Task**. +2. Select **User-defined script**. +3. Enter a task name. +4. Select **root** as the user (The script needs to run as root). +5. Select **Boot-up** as the event that triggers the task. +6. Leave **Enable** ticked. +7. Click **Task Settings**. +8. Optionally you can tick **Send run details by email** and **Send run details only when the script terminates abnormally** then enter your email address. +9. 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 volume1 called "scripts" you'd type: **/volume1/scripts/syno_hdd_db.sh** +11. Click **OK** to save the settings. +