NetBSD Problem Report #61002
From aliraheem@proton.me Fri Nov 13 23:28:56 2026
Return-Path: <aliraheem@proton.me>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 26FF11A923B
for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Nov 2026 23:28:56 +0000 (UTC)
Message-Id: <uKsxtNh5ZnA0MCAoXaKZ_-GE8Cg_B8Nwfdp5OF3n3Svu6FUQKWNSB-qCAab6cw2ULCCqj_tQbUiw8d_C0ZKR2NM1nBFy-kgRy8lhEM9_DRQ=@proton.me>
Date: Fri, 13 Nov 2026 23:28:43 +0000
From: Ali Raheem <aliraheem@proton.me>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Subject: net/tor package does not include refresh method to reload config on OmniOS
X-From4GNATS: "Ali Raheem via gnats" <gnats-admin@NetBSD.org>
>Number: 61002
>Category: pkg
>Synopsis: net/tor: SMF manifest has no refresh method, so svcadm ref=
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: solaris-pkg-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Nov 13 23:30:01 +0000 2026
>Last-Modified: Sun Nov 15 08:52:28 +0000 2026
>Originator: Ali Raheem
>Release: pkgsrc-current
>Organization:
ClaireNET, https://claire.shoryuken.me
>Environment:
From joyent_20260611T215617Z
System: SunOS claire-it 5.11 omnios-r151060-513bc64de92 i86pc i386 i86pc
Architecture: i86pc
Machine: i386
OmniOS r151060, tor-0.4.9.16
>Description:
The SMF manifest for net/tor does not define a refresh method.
`svcadm refresh pkgsrc/tor` therefore does not cause tor to
reload torrc and changes to torrc are not picked up.
Tor reloads its configuration on SIGHUP. A refresh method that
sends HUP would make svcadm refresh reload torrc without =
killing tor and breaking established connections.
>How-To-Repeat:
1. Change a reloadable option in torrc, e.g. RelayBandwidthRate.
2. svcadm refresh pkgsrc/tor:default
3. Tor's log does not show the expected "Received reload signal (h=
up)",
and the settings don't update. =
4. svcprop -p refresh pkgsrc/tor:default reports that the
property group does not exist.
>Fix:
Define a refresh method alongside the start/stop methods in files/=
smf/manifest.xml =
<exec_method type=3D"method" name=3D"refresh" exec=3D":kil=
l -HUP" timeout_seconds=3D"60" />
a workaround is manually sending a HUP `pkill -HUP -x tor`
-----------------------c22124f912eb1ed2e39d51006023d209--
--------b266baec31d84f56a96ecadeaf0e0c464be86249b402df10dd6cadf039bfe847
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
wrsEARYKAG0Fgmr3nRQJEGn/HhZye8ZnRRQAAAAAABwAIHNhbHRAbm90YXRp
b25zLm9wZW5wZ3Bqcy5vcmeD2TncFMioGszViQODPtCokz7+JiNbDHjFSAVF
KQt36RYhBC8XJiZFecpGxO/9pWn/HhZye8ZnAACKGQEAySnGoTgxyB9y+qFU
e6/N9YM3+dz0R7dVpiE83Lq+gH0A/j2y4AjddvIRdSlhdAL1JdVxHvIjQzf9
rdsZaBom4q8B
=G6NX
-----END PGP SIGNATURE-----
--------b266baec31d84f56a96ecadeaf0e0c464be86249b402df10dd6cadf039bfe847--
>Release-Note:
>Audit-Trail:
From: Ali Raheem <aliraheem@proton.me>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/61002: net/tor: SMF manifest has no refresh method, so svcadm refresh doesn't reload torrc
Date: Sat, 14 Nov 2026 09:51:50 +0000
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------02379783de138e7b41af42ecb92375a3ad5e980401409a9ca43c128d7c5059f1
Content-Type: multipart/mixed;boundary=---------------------25dee1d8fed5b634c5fb3fd691d438f9
-----------------------25dee1d8fed5b634c5fb3fd691d438f9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;charset=utf-8
My suggested patch for pkg/61002
This patch adds a refresh method to files/smf/manifest.xml that sends SIGH=
UP to trigger a reload of the configuration, and adds PKGREVISION =3D 1 to=
the Makefile.
I have tested this with the tor-0.4.9.16 binary package on OmniOS r151060,=
by adding the refresh method to the installed manifest.
- Confirmed svcadm refresh pkgsrc/tor triggers tor to report "Received rel=
oad signal (hup)..." and configuration is updated.
- Confirmed restart/disable behave as before.
I haven't built the tor package with the patch applied.
Kind regards,
Ali
diff -ru a/net/tor/Makefile b/net/tor/Makefile
--- a/net/tor/Makefile Sat Nov 14 09:01:00 2026
+++ b/net/tor/Makefile Sat Nov 14 09:07:46 2026
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.205 2026/11/09 08:32:35 adam Exp $
=
DISTNAME=3D tor-0.4.9.16
+PKGREVISION=3D 1
CATEGORIES=3D net security
MASTER_SITES=3D https://dist.torproject.org/
=
diff -ru a/net/tor/files/smf/manifest.xml b/net/tor/files/smf/manifest.xml
--- a/net/tor/files/smf/manifest.xml Sat Nov 14 09:01:10 2026
+++ b/net/tor/files/smf/manifest.xml Sat Nov 14 09:04:51 2026
@@ -14,6 +14,7 @@
<method_credential user=3D"@TOR_USER@" group=3D"@TOR_GROUP@"/>
</method_context>
<exec_method type=3D"method" name=3D"start" exec=3D"@PREFIX@/bin/tor =
--RunAsDaemon 1 --DataDirectory @PKG_HOME@" timeout_seconds=3D"60"/>
+ <exec_method type=3D"method" name=3D"refresh" exec=3D":kill -HUP" tim=
eout_seconds=3D"60"/>
<exec_method type=3D"method" name=3D"stop" exec=3D":kill" timeout_sec=
onds=3D"60"/>
<property_group name=3D"startd" type=3D"framework">
<propval name=3D"duration" type=3D"astring" value=3D"contract"/>
-----------------------25dee1d8fed5b634c5fb3fd691d438f9
Content-Type: application/octet-stream; filename="tor-smf-refresh.diff"; name="tor-smf-refresh.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="tor-smf-refresh.diff"; name="tor-smf-refresh.diff"
ZGlmZiAtcnUgYS9uZXQvdG9yL01ha2VmaWxlIGIvbmV0L3Rvci9NYWtlZmlsZQotLS0gYS9uZXQv
dG9yL01ha2VmaWxlCVNhdCBOb3YgMTQgMDk6MDE6MDAgMjAyNgorKysgYi9uZXQvdG9yL01ha2Vm
aWxlCVNhdCBOb3YgMTQgMDk6MDc6NDYgMjAyNgpAQCAtMSw2ICsxLDcgQEAKICMgJE5ldEJTRDog
TWFrZWZpbGUsdiAxLjIwNSAyMDI2LzExLzA5IDA4OjMyOjM1IGFkYW0gRXhwICQKIAogRElTVE5B
TUU9CXRvci0wLjQuOS4xNgorUEtHUkVWSVNJT049CTEKIENBVEVHT1JJRVM9CW5ldCBzZWN1cml0
eQogTUFTVEVSX1NJVEVTPQlodHRwczovL2Rpc3QudG9ycHJvamVjdC5vcmcvCiAKZGlmZiAtcnUg
YS9uZXQvdG9yL2ZpbGVzL3NtZi9tYW5pZmVzdC54bWwgYi9uZXQvdG9yL2ZpbGVzL3NtZi9tYW5p
ZmVzdC54bWwKLS0tIGEvbmV0L3Rvci9maWxlcy9zbWYvbWFuaWZlc3QueG1sCVNhdCBOb3YgMTQg
MDk6MDE6MTAgMjAyNgorKysgYi9uZXQvdG9yL2ZpbGVzL3NtZi9tYW5pZmVzdC54bWwJU2F0IE5v
diAxNCAwOTowNDo1MSAyMDI2CkBAIC0xNCw2ICsxNCw3IEBACiAgICAgICA8bWV0aG9kX2NyZWRl
bnRpYWwgdXNlcj0iQFRPUl9VU0VSQCIgZ3JvdXA9IkBUT1JfR1JPVVBAIi8+CiAgICAgPC9tZXRo
b2RfY29udGV4dD4KICAgICA8ZXhlY19tZXRob2QgdHlwZT0ibWV0aG9kIiBuYW1lPSJzdGFydCIg
ZXhlYz0iQFBSRUZJWEAvYmluL3RvciAtLVJ1bkFzRGFlbW9uIDEgLS1EYXRhRGlyZWN0b3J5IEBQ
S0dfSE9NRUAiIHRpbWVvdXRfc2Vjb25kcz0iNjAiLz4KKyAgICA8ZXhlY19tZXRob2QgdHlwZT0i
bWV0aG9kIiBuYW1lPSJyZWZyZXNoIiBleGVjPSI6a2lsbCAtSFVQIiB0aW1lb3V0X3NlY29uZHM9
IjYwIi8+CiAgICAgPGV4ZWNfbWV0aG9kIHR5cGU9Im1ldGhvZCIgbmFtZT0ic3RvcCIgZXhlYz0i
OmtpbGwiIHRpbWVvdXRfc2Vjb25kcz0iNjAiLz4KICAgICA8cHJvcGVydHlfZ3JvdXAgbmFtZT0i
c3RhcnRkIiB0eXBlPSJmcmFtZXdvcmsiPgogICAgICAgPHByb3B2YWwgbmFtZT0iZHVyYXRpb24i
IHR5cGU9ImFzdHJpbmciIHZhbHVlPSJjb250cmFjdCIvPgo=
-----------------------25dee1d8fed5b634c5fb3fd691d438f9--
--------02379783de138e7b41af42ecb92375a3ad5e980401409a9ca43c128d7c5059f1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
wrsEARYKAG0Fgmr4Lx8JEGn/HhZye8ZnRRQAAAAAABwAIHNhbHRAbm90YXRp
b25zLm9wZW5wZ3Bqcy5vcmf/vxWdOqcc3DEjbJ6Utctu+H3JbQqPmu5tCcAU
qgRjlhYhBC8XJiZFecpGxO/9pWn/HhZye8ZnAABvggD/ZMLDIhgu1JBsqwxL
gjmHKuVTFhC4Klpci1DeOcDplCgBANPE9wHEvYEgqiQBgTKBqBA9InAxbxZy
8oNzhuV0YGcH
=NcxA
-----END PGP SIGNATURE-----
--------02379783de138e7b41af42ecb92375a3ad5e980401409a9ca43c128d7c5059f1--
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Nov 2026 08:52:28 +0000
Responsible-Changed-Why:
Over to role account
>Unformatted:
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------b266baec31d84f56a96ecadeaf0e0c464be86249b402df10dd6cadf039bfe847
Content-Type: multipart/mixed;boundary=---------------------c22124f912eb1ed2e39d51006023d209
-----------------------c22124f912eb1ed2e39d51006023d209
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;charset=utf-8
resh doesn't reload torrc
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.