-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from 007revad/develop
Develop
- Loading branch information
Showing
7 changed files
with
95 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# How to schedule a script in Synology Task Scheduler | ||
|
||
To schedule a script to run on your Synology at boot-up or shutdown 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_enable_eunit.sh -e --unit=EUNIT` | ||
- Replace EUNIT with your expansion unit model: dx517, dx513, dx213, dx510, rx418, rx415 or rx410 | ||
11. Click **OK** to save the settings. | ||
|
||
Here's some screenshots showing what needs to be set: | ||
|
||
<p align="leftr"><img src="images/schedule1.png"></p> | ||
|
||
<p align="leftr"><img src="images/schedule2.png"></p> | ||
|
||
<p align="leftr"><img src="images/schedule3.png"></p> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters