pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/61002: net/tor package does not include refresh method to reload config on OmniOS
>Number: 61002
>Category: pkg
>Synopsis: net/tor: SMF manifest has no refresh method, so svcadm ref=
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Nov 13 23:30:01 +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--
>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
Home |
Main Index |
Thread Index |
Old Index