Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Add anacron as optional schedule task handler

Featured Replies

I only use unRAID as hypervisor for my gaming machine and dont have it 24/7 running.

 

Currently you are using crontab to run scheduled tasks but if my system is not running at this time, the cronjob is not executed.

 

It would be nice if you could implement anacron as second choice.

 

#/bin/bash

# Concatenate the current set of plugin-specific cron files
# into single system crontab.

ENTRIES=$(cat /boot/config/plugins/*/*.cron 2>/dev/null)
if (($? != 0)); then
  crontab -c /etc/cron.d -d
else
  echo "$ENTRIES" | crontab -c /etc/cron.d -
fi

  • Author

(I'm not responsible for any damage)

I made a manual anacron setup via go script:

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

# copy anacron binary and set permissions
cp /boot/config/anacron/anacron /usr/sbin/
chmod 755 /usr/sbin/anacron

# start anacron if all is ready
if [ -x /usr/sbin/anacron -a -f /boot/config/anacron/anacrontab ]; then
/usr/sbin/anacron -s -t /boot/config/anacron/anacrontab -S /boot/config/anacron/spool/
fi

 

 

# /etc/anacrontab: configuration file for anacron

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# the maximal random delay added to the base delay of the jobs
RANDOM_DELAY=45
# the jobs will be started during the following hours only
START_HOURS_RANGE=3-22

#period in days   delay in minutes   job-identifier   command
1       5       cron.daily              nice run-parts /boot/config/anacron/cron.daily
7       25      cron.weekly             nice run-parts /boot/config/anacron/cron.weekly
@monthly 45     cron.monthly            nice run-parts /boot/config/anacron/cron.monthly

 

All you need is an anacron binary in /usr/sbin/ and to create all needed directories/your anacron scripts.

 

  • 3 years later...

Wow, this is old. I was going to ask for the same thing but in a new request.

 

Please do add anacron. I imagine quite a few people do not leave their unRAID box on 24/7 and anacron is a tiny and sensible addition.

What benefits does "anacron" bring that isn't already provided by base unraid or unraid with user-scripts plugin?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.