On 15 February 2024 19:12:11 CET, b...@fea.st wrote:
>So I was curious, am I the only one using automatic OS updates
>in cron to keep the fish fresh and the bits dust free?
>
>I think I read somewhere that it's not recommended but I'm not
>running a server so it seems like a good idea to me.
>
>/etc/crontab:
>
># Example of job definition:
># .---------------- minute (0 - 59)
># | .------------- hour (0 - 23)
># | | .---------- day of month (1 - 31)
># | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
># | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
>sun,mon,tue,wed,thu,fri,sat
># | | | | |
># * * * * * user-name command to be executed
> 0 3 * * * root sysupgrade
This will stop working at the next release. Assuming you want to run -current.
>30 3 * * * root pkg_add -u
This will most likely run after package daemons have started. There is an
example in upgrade.site(5) how to do this differently.
--
Sent from a mobile device. Please excuse poor formatting.