![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
I would like to check for any new patches daily at 3:00 am using syspatch and update my system if there are any new patches. If are new patches I would like to install them and then reboot my system. Anyone have a cron job script or anything that would accomplish this task?
|
|
|||
![]()
I think the general wisdom is that you should be present for updates in case something unexpected happens, but you could certainly check for updates by adding this to root's tab:
Code:
0 3 * * * /usr/sbin/syspatch -c Code:
0 3 * * * /usr/sbin/syspatch && /sbin/reboot |
|
|||
![]()
I was aware of the syspatch -c command but it would seem the appropriate use for that command is for an admin who is present.
I'll probably just tinker with the syspatch script and change it to reboot my machine after patches are automatically installed using a cron job. Had to tinker with it before when I was unable to use syspatch on a dated nightly build installed release of OpenBSD. Thanks for your input. |
|
|||
![]()
Thanks for your alternative suggestion jggimi.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
syspatch on only two architectures? | pawkolor | OpenBSD General | 9 | 22nd October 2017 05:39 PM |
syspatch appears to get stuck | Prevet | OpenBSD Installation and Upgrading | 1 | 9th October 2017 07:37 PM |
cron newsyslog message | starbuck | FreeBSD General | 2 | 6th August 2008 07:33 PM |
Cron running but not working | stukov | Other BSD and UNIX/UNIX-like | 26 | 24th July 2008 01:17 PM |
Using sendmail in a cron job | erehwon | OpenBSD General | 6 | 15th May 2008 09:03 PM |