You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add JavaScript patterns for progress indicators and modal dialogs
- Introduced loading spinner and progress bar examples.
- Added functions for handling long-running tasks with progress updates.
- Included usage of SweetAlert for modal dialogs with various types (alerts, confirmations, inputs).
- Provided custom modal implementation with HTML, CSS, and JavaScript.
- Updated best practices for user feedback and preventing double submissions.
Create documentation for plugin distribution and Community Applications
- Added a new section on distribution and publishing of Unraid plugins.
- Documented the process for getting listed in Community Applications.
- Included requirements for listing, XML template structure, and submission process.
- Outlined best practices for plugin description writing and version compatibility.
Establish comprehensive reference for $var array
- Created a detailed reference for the $var array, including system state and configuration variables.
- Documented access methods, complete property reference, and common usage patterns.
- Provided examples for checking array state, server information, and CSRF token usage.
- Included notes on related state files and disk/share information access.
Copy file name to clipboardExpand all lines: docs/core/cron-jobs.md
+269-7Lines changed: 269 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,21 @@ nav_order: 7
7
7
8
8
# Cron Jobs
9
9
10
-
{: .warning }
11
-
> This page is a stub. [Help us expand it!](https://github.com/mstrhakr/unraid-plugin-docs/blob/main/CONTRIBUTING.md)
12
-
13
10
## Overview
14
11
15
-
Plugins can add scheduled tasks using cron. Unraid uses the standard cron daemon with files in `/etc/cron.d/`.
12
+
Plugins can add scheduled tasks using cron. Unraid uses the standard cron daemon with files in `/etc/cron.d/`. Additionally, Unraid provides a built-in **Dynamix Scheduler** that offers a GUI-based interface for managing scheduled tasks.
13
+
14
+
## Methods for Scheduling Tasks
16
15
17
-
## Adding a Cron Job
16
+
There are three primary ways to schedule tasks in Unraid:
17
+
18
+
| Method | Best For | Persistence |
19
+
|--------|----------|-------------|
20
+
|`/etc/cron.d/` files | System-level tasks | Recreate on boot |
| User Scripts plugin | User-defined scripts | Via plugin settings |
23
+
24
+
## Adding a Cron Job via /etc/cron.d/
18
25
19
26
Cron files should be installed to `/etc/cron.d/` since this directory is in RAM and recreated on boot.
20
27
@@ -47,6 +54,132 @@ case "$1" in
47
54
esac
48
55
```
49
56
57
+
## Dynamix Scheduler Integration
58
+
59
+
The Dynamix Scheduler provides a GUI for scheduling tasks at Settings → Scheduler. Plugins can integrate with this system to let users configure schedules without editing cron files manually.
60
+
61
+
### Scheduler Configuration File
62
+
63
+
The Dynamix Scheduler reads from `/boot/config/plugins/dynamix/dynamix.cfg`:
64
+
65
+
```ini
66
+
# Example scheduler entries in dynamix.cfg
67
+
parity="0|0|*|*|*"# Parity check schedule
68
+
mover="0|3|*|*|*"# Mover schedule
69
+
```
70
+
71
+
### Adding Plugin Tasks to the Scheduler
72
+
73
+
To integrate with the Dynamix Scheduler, your plugin can add entries to the scheduler page:
74
+
75
+
```php
76
+
<?
77
+
// In your settings page, provide scheduler controls
0 commit comments