Cron Jobs Screen

Per-user crontab editor with expression validation, presets, and cron.d management.


Layout

+------------------------------------------------------------------+
|  Cron Jobs   Owner: [root ▼]   [Add Job]   [cron.d Files]       |
+------------------------------------------------------------------+
|  Stats: Total: 5  Active: 4  Disabled: 1  Owners: 12            |
+------------------------------------------------------------------+
|  ┌──────────────────────────────────────────────────────────────┐|
|  │ ☐  Schedule     Command              Next Run     Actions   │|
|  │ ☐  0 2 * * *    /opt/backup.sh       Jul 29 02:00  [⋯]     │|
|  │ ☐  @daily       /opt/cleanup.sh      Jul 29 00:00  [⋯]     │|
|  │ ☐  */5 * * * *  /opt/monitor.sh      Jul 28 12:05  [⋯]     │|
|  │ ☐  0 0 * * 0    /opt/report.sh       Jul 31 00:00  [⋯]     │|
|  │ ☐  #disabled    /opt/old-task.sh     -            [⋯]     │|
|  └──────────────────────────────────────────────────────────────┘|
+------------------------------------------------------------------+

Features

FeatureDescription
Per-User CrontabSelect owner from dropdown
Cron.d FilesManage /etc/cron.d system files
Expression Validation5-field cron validation
Human Description"Daily at 02:00", "Every 5 minutes"
Next Run TimeComputed from current time
Enable/DisableToggle by commenting/uncommenting
Quick PresetsOne-click minute/hourly/daily/weekly/monthly
Frequency ColorsColor-coded schedule badges

Schedule Frequency Colors

FrequencyColor
Every minuteRed
Every N minutesOrange
HourlyBlue
DailyGreen
WeeklyPurple
MonthlyYellow
YearlyCyan
@rebootPink

Modals

  • Add/Edit Job (schedule, command, shorthand dropdown)
  • Cron.d Editor (file content editor)
  • Delete Confirmation

Event Delegation

Buttons use data-cron-action attributes.


API Calls

MethodEndpointPurpose
GET/api/cron/ownersList owners
GET/api/cron/:ownerList jobs
POST/api/cron/:ownerAdd job
PUT/api/cron/:owner/:idxEdit job
DELETE/api/cron/:owner/:idxDelete job
PUT/api/cron/:owner/:idx/toggleToggle job
GET/api/cron/describeDescribe schedule

Part of NexusPanel Documentation

← Back to Documentation