Request: scheduled/deferred update



  • I'm tired of getting up at 4 am to run my updates. Would it be possible to tweak the UI or console so a person could schedule the update to run at an appointed time, just using the latest snap? Ubiquiti's AirControl software has a scheduler that can do this, and it's great.



  • hmmm…i'm not one for auto-updating of stuff (specifically an OS), since murphy normally decides to play a role in that. Maybe thats just me.



  • I think clarknova is referring to scheduling just one update, not necessarily a periodic update.


  • Rebel Alliance Developer Netgate

    It could be done, but not easily. Using some shell fu, you could download the snapshot you want to upgrade to somewhere on your pfsense box, and then use the firmware update scripts to apply it. I think you may also need the .md5 file for the update or it will generate a yes/no prompt if the image can't be validated.

    You could add the crontab entry for atrun using the cron package

    */5     *       *       *       *       root    /usr/libexec/atrun
    

    And then put an at job in to do what you want for a single time:

    $ at 4am
    /etc/rc.firmware upgrade /path/too/update.tgz
    ^D
    


  • Yeah, I just need a one-off solution for testing new commits that address my issue. It wouldn't be entirely unattended either, as I have a remote system pinging my WAN, so if pfsense went down for more than 5 minutes I'd get a wake-up email anyway. I'll try Jim's suggestion next time I feel the need to grab the latest snap.



  • @clarknova:

    Yeah, I just need a one-off solution for testing new commits that address my issue. It wouldn't be entirely unattended either, as I have a remote system pinging my WAN, so if pfsense went down for more than 5 minutes I'd get a wake-up email anyway. I'll try Jim's suggestion next time I feel the need to grab the latest snap.

    ahh - I mis-understood you. Would be interesting to hear if it all works for you.


Log in to reply