[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [community/master] Create child page with BSD auto update instructions



commit 3fc8f0efe60b71920863fe9d6ced516c2940110b
Author: gus <gus@xxxxxxxxxxxxxx>
Date:   Thu Aug 29 07:12:44 2019 -0400

    Create child page with BSD auto update instructions
---
 .../guard/freebsd/updates/contents.lr              | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/content/relay-operations/technical-setup/guard/freebsd/updates/contents.lr b/content/relay-operations/technical-setup/guard/freebsd/updates/contents.lr
new file mode 100644
index 0000000..bc1dd05
--- /dev/null
+++ b/content/relay-operations/technical-setup/guard/freebsd/updates/contents.lr
@@ -0,0 +1,45 @@
+_model: page
+---
+title: Automatic Updates on BSD*
+---
+_hidden: no
+---
+_slug: updates
+---
+body:
+
+# DragonFlyBSD / FreeBSD / HardenedBSD
+
+**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._
+
+#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
+```
+
+#2. Schedule the job to run. 
+
+```
+# echo "0 0 * * * root /bin/sh /root/pkg_upgrade.sh >/dev/null" >> /etc/crontab
+```
+
+#3. Restart cron's service. 
+
+```
+# service cron restart
+```
+---
+html: two-columns-page.html
+---
+section: relay operations
+---
+section_id: relay-operations
+---
+key: 1



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits