# rcctl -d configtest tor doing _rc_parse_conf tor_flags empty, using default >< doing _rc_parse_conf /var/run/rc.d/tor tor doing rc_configtest Jan 18 22:53:19.437 [notice] Tor 0.4.8.10 running on OpenBSD with Libevent 2.1.12-stable, OpenSSL LibreSSL 3.8.2, Zlib 1.3.0.1-motley, Liblzma N/A, Libzstd N/A and BSD 202310 as libc. Jan 18 22:53:19.438 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/ Jan 18 22:53:19.438 [notice] Read configuration file "/etc/tor/torrc". Configuration was valid (ok)
Feedback? OK? Index: Makefile =================================================================== RCS file: /cvs/ports/net/tor/Makefile,v diff -u -p -r1.162 Makefile --- Makefile 9 Dec 2023 22:38:11 -0000 1.162 +++ Makefile 18 Jan 2024 21:52:31 -0000 @@ -3,6 +3,7 @@ COMMENT= anonymity service using onion r DISTNAME= tor-0.4.8.10 CATEGORIES= net HOMEPAGE= https://www.torproject.org/ +REVISION= 0 MAINTAINER= Pascal Stumpf <pas...@stumpf.co> Index: pkg/tor.rc =================================================================== RCS file: /cvs/ports/net/tor/pkg/tor.rc,v diff -u -p -r1.8 tor.rc --- pkg/tor.rc 11 Mar 2022 19:47:53 -0000 1.8 +++ pkg/tor.rc 18 Jan 2024 21:52:26 -0000 @@ -7,4 +7,8 @@ daemon_timeout=60 rc_stop_signal=INT +rc_configtest() { + ${daemon} ${daemon_flags} --verify-config +} + rc_cmd $1