wiki:TorRelayGuide/BSDUpdates

NOTE: all steps documented on this page are considering that your machine/server/system only provides Tor relay services. please be aware that other services running might stop/restart during the upgrade.

DragonFlyBSD / FreeBSD / HardenedBSD

  1. Create the script to perform the updates. Let's use /root/pkg_upgrade.sh
#!/usr/bin/env sh
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
RAND=$(jot -r 1 300)
sleep ${RAND}
env AUTOCLEAN=YES ASSUME_ALWAYS_YES=YES HANDLE_RC_SCRIPTS=YES pkg upgrade
  1. Schedule the job to run.
# echo "0 0 * * * root /bin/sh /root/pkg_upgrade.sh >/dev/null" >> /etc/crontab
  1. Restart cron's service.
# service cron restart
Last modified 7 weeks ago Last modified on Aug 2, 2018, 6:49:35 PM