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.

How do i have cron jobs remain after a reboot ?

Featured Replies

Hello All

 

Does anyone know a simple method to make cron jobs remain after a reboot ?

 

Kind Regards

 

Ryan

  • 2 months later...
  • Author

Bump, i've tried using the schedulers plugin and creating a name.cron text file with the rsync command i want to use but its not running

Have you looked at the User Scripts plugin?

 

^^^ This

 

Or alternatively, add the appropriate crontab commands to the "go" file (/boot/config/go)

  • Author

i added a file with the .cron externtion to /config/plugins/dynamix but it didn't run it was a simple rsync command "45 17 * *  6 rsync -av /path/to/folder /path/to/folder" command did not execute at 5:45

make a .cron file and place it in your /flash/config/plugins/dynamix folder. To activate it, type update_cron within an ssh session. This will cause it to be added to the cronjobs immediately without the need to reboot.

 

The cron file needs to be formatted like so (This cron example will run at 10AM every Friday):

0 10 * * 5 command &> /dev/null

  • Author

I'll be trying that out today thank you so much, will this allow for mailto to be added aswell ?

  • Community Expert

I'll be trying that out today thank you so much, will this allow for mailto to be added aswell ?

See here for example.
  • Author

Is there a way to configure that for when the job completes ?

  • Community Expert

Is there a way to configure that for when the job completes ?

Make a script that does whatever you want.

 

In the script, include the notify at the end so that when you run the script, you get the notification.

 

Call the script from the .cron file.

 

Done

  • Author

I like the idea, thought to be honest im not 100% sure of how to write it, could i trouble you for an example ?

 

Basically what i want to do is have the cronjob output a log file then email a copy to me either as an attachment or the the body of text

 

Cheers

  • Community Expert

I'm certainly not the best for scripting. If you search (see How to Search in my sig) for script/notify you will see other examples of people using notify. The main thing I don't know is how you intend to produce the log file you want to include in the email, and that is going to be something that is specific to your use.

  • 3 years later...
On 12/12/2016 at 6:50 AM, GroxyPod said:

make a .cron file and place it in your /flash/config/plugins/dynamix folder. To activate it, type update_cron within an ssh session. This will cause it to be added to the cronjobs immediately without the need to reboot.

 

The cron file needs to be formatted like so (This cron example will run at 10AM every Friday):

0 10 * * 5 command &> /dev/null

So I have this working with something I wanted to CRON but is there a way to tell this schedule is setup?

crontab -l

doesn't show up the job but it is running

The best way to achieve this is to use the “User Scripts" plugin.

 

Update:  just read the earlier posts and realized this was already suggested.

Edited by remotevisitor

19 hours ago, jameson_uk said:
On 12/12/2016 at 1:50 AM, GroxyPod said:

 

So I have this working with something I wanted to CRON but is there a way to tell this schedule is setup?

cat /etc/cron.d/root

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.