srivo said:I suggest that section 25.2.2 of the handbook be modified to reflect the correct way of using freebsd-update cron with crontab -e.
cron Sleep a random amount of time between 1 and 3600 seconds,
then download updates as if the fetch command was used. If
updates are downloaded, an email will be sent (to root or a
different address if specified via the -t option or in the
configuration file). As the name suggests, this command is
designed for running from cron(8); the random delay serves
to minimize the probability that a large number of machines
will simultaneously attempt to fetch updates.
Man pages aren't the handbook.setevoy said:Well, now still the same:
SirDice said:Cron has a very limited $PATH. Use the full path to the binary.
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
/usr/sbin/freebsd-update
freebsd-update: not found
SirDice said:
An entry in /etc/crontab would be sufficient to accomplish this task:
@daily root freebsd-update cron
setevoy said:Yes, but here is from Handbook:
Code:An entry in /etc/crontab would be sufficient to accomplish this task: @daily root freebsd-update cron