Run Cron Job after Reboot

Is there a way to run a cronjob after a reboot? From what I can tell I can’t schedule a job in the WebUI to allow for scheduling @reboot /path/to/script. Thanks. :slight_smile:

You’d run it as a post-init script/command instead.

1 Like

Yeah, I understand that. That doesn’t work in EE however, because the Nvidia driver is installed somewhere later in the boot process it seems. I have a script I run that patches the nvidia encode libs by Keylase, but it doesn’t work any long on boot. So I was hoping that running @reboot in cron would work when the system is fully booted.

“Post-init” should cover that, I’d think. Of course, you could always start your script with sleep 300 or something if it would still take longer.

2 Likes

That’s right, let me give that a shot and see what happens… I’ll let you know what I find. I appreciate it. :slight_smile:

Turns out nvidia in EE is a mess… Still fiddling with this. Drivers don’t exist after a version upgrade, yet it shows as installed under the apps config settings. You have to toggle it off/on, let it reinstall in the new version, then reboot again… :man_facepalming: Incus can’t get here fast enough.

That sounds like a bug-report

Yup, I already submitted a suggestion to move the Nvidia settings from under Apps to Settings > Advanced Settings > and rename Isolate GPU settings to GPU Settings and have the driver and isolation configure options there. I mentioned that the drivers should remain installed in that suggestion as well, but I am going to have to open a bug report up as well.

1 Like