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