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 recommended pattern using /boot/config/plugins/<plugin>/<plugin>.cron
with /usr/local/sbin/update_cron instead of writing directly to
/etc/cron.d/. Update rc.d script example to use the persistent approach.
Thanks @Squidly271 in issue #2
Copy file name to clipboardExpand all lines: docs/core/cron-jobs.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,37 @@ nav_order: 7
9
9
10
10
## Overview
11
11
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.
12
+
Plugins can add scheduled tasks using cron. Unraid uses the standard cron daemon with files in `/etc/cron.d/`. For plugin-managed cron entries, the simplest persistent pattern is storing a file like `/boot/config/plugins/yourplugin/yourplugin.cron` and calling `update_cron` after changes. Additionally, Unraid provides a built-in **Dynamix Scheduler** that offers a GUI-based interface for managing scheduled tasks.
13
13
14
14
## Methods for Scheduling Tasks
15
15
16
16
There are three primary ways to schedule tasks in Unraid:
17
17
18
18
| Method | Best For | Persistence |
19
19
|--------|----------|-------------|
20
+
|`/boot/config/plugins/<plugin>/<plugin>.cron`| Plugin-owned cron entries | Persistent on flash |
20
21
|`/etc/cron.d/` files | System-level tasks | Recreate on boot |
0 commit comments