[Tor-BSD] FreeBSD/HardenedBSD - auto updating packages
egypcio at googlemail.com
Mon Feb 26 12:03:18 EST 2018
2018-02-26 16:38 GMT+00:00 Vinícius Zavam <egypcio at googlemail.com>:
> 2018-02-25 23:18 GMT+00:00 nusenu <nusenu-lists at riseup.net>:
> > Shawn Webb:
> > > So I learned a thing: pkg(8) has a variable called HANDLE_RC_SCRIPTS
> > > that will auto-restart any services of updated packages. A plugin
> > > would still be needed if the admin _only_ wanted tor to be restarted.
> > > Would you still like me to write that plugin?
> AUTOCLEAN and PAGER can also be added to it,
> or consider running `pkg clean -a -y` before/after the upgrade.
> > I guess we are covered with HANDLE_RC_SCRIPTS
> > --
> > https://mastodon.social/@nusenu
> > twitter: @nusenu_
> if one uses HANDLE_RC_SCRIPTS other services will be impacted, not only
> that could be mentioned on the wiki page.
> considering that the server (jail?) will be running *only* Tor, give it a
if someone wants to add FreeBSD base/world updates to crontab, so ...
% grep -v -E '(^$|^#)' /etc/freebsd-update.conf
I changed the components to be updated, and that's it; no kernel update, no
need to reboot.
of course human interaction will be needed sometime to check for kernel
updates and perform an assisted system upgrade.
I just tested it around here, and that's what I got (after running from
root at freebsd11:~ # date
Mon Feb 26 17:00:30 UTC 2018
root at freebsd11:~ # uptime
5:00PM up 4 mins, 1 users, load averages: 0.55, 0.41, 0.19
root at freebsd11:~ # uname -a
FreeBSD freebsd11 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul
21 02:08:28 UTC 2017
root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
root at freebsd11:~ # freebsd-version -u
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tor-BSD