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.

(SOLVED) Will cron jobs stay after reboot?

Featured Replies

I adden a daily cron job to copy a folder from a UNRAID share to my backup NAS, and it works fine and I can even see it in the Dynamix Schedules plugin.

But what happens after a reboot, will the cron job still be there, cause the linux systen is run from RAM, right? 

Edited by gberg

  • Community Expert
1 minute ago, gberg said:

I adden a daily cron job to copy a folder from a UNRAID share to my backup NAS, and it works fine and I can even see it in the Dynamix Schedules plugin.

But what happens after a reboot, will the cron job still be there, cause the linux systen is run from RAM, right? 

If you manually added it then it will NOT survive a reboot.    If you add it via the User Scripts plugin then it WILL survive a reboot.

  • Author

Ah, ok. I added it manually, I have to look into the User Scripts plugin then, thanks!

  • Community Expert
6 minutes ago, gberg said:

Ah, ok. I added it manually, I have to look into the User Scripts plugin then, thanks!

That is definitely a plugin that is worth installing :)   

 

There are other ways to make a script survive a reboot but the User Scripts plugin is by far the easiest.

  • Author

Yeah, I installed it, and I noted it placed a new cron job in the /etc/cron.daily folder, and that will be placed there on every reboot I presume?

  • Community Expert
28 minutes ago, gberg said:

Yeah, I installed it, and I noted it placed a new cron job in the /etc/cron.daily folder, and that will be placed there on every reboot I presume?

The plugin handles re-installing everything after a reboot for all the scripts it is handling.  Which cron folder it ends up in depends on the scheduling option you select in User Scripts, but the nice thing is that you do not need to worry about that level of detail if using the plugin.

As has already been said, the user scripts plugin is the easiest method, but here is a manual alternative for those who don't like to take the easy way.

 

Export desired crontab settings to a file on your flash stick:

crontab -l > /boot/config/cron.txt

Add the following line to your go script at /boot/config/go 

crontab /boot/config/cron.txt

 

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.