Saturday, January 31, 2026

Re: transmission: allow service reload

On Sat, Jan 31, 2026 at 07:37:26PM +0000, Klemens Nanni wrote:
> dhttps://github.com/transmission/transmission/blob/main/docs/Editing-Configuration-Files.md#reload-settings
>
> transmission-daemon(1) writes out its entire config on exit.
>
> Noticed while deploying with openvox, where the usual chain is:
> - install package
> - produce (partial) config file
> - (re)start service (upon change)
>
> But as the daemon updates the file, this would obviously cause
> change -> restart loops, so soft-reload to apply config without
> process exit is needed.
>
> Works like a charm using the package's service as-is.
>
> OK?

OK maintainer, and a big thank you for the update commit! If you could,
would you be kind enough to add this to the Makefile with this revision?

DPB_PROPERTIES= parallel

I have it in my openbsd-wip Makefile, and it's been helpful there
during integration testing, where it significantly speeds up builds
on amd64.

>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/transmission/Makefile,v
> diff -u -p -r1.157 Makefile
> --- Makefile 31 Jan 2026 18:00:38 -0000 1.157
> +++ Makefile 31 Jan 2026 19:17:31 -0000
> @@ -3,6 +3,7 @@ COMMENT-gtk= BitTorrent client with GTK+
> COMMENT-qt= BitTorrent client with Qt interface
>
> VER= 4.1.0
> +REVISION-main= 0
> DISTNAME= transmission-4.1.0
> PKGNAME-main= transmission-${VER}
> PKGNAME-gtk= transmission-gtk-${VER}
> Index: pkg/transmission_daemon.rc
> ===================================================================
> RCS file: /cvs/ports/net/transmission/pkg/transmission_daemon.rc,v
> diff -u -p -r1.3 transmission_daemon.rc
> --- pkg/transmission_daemon.rc 11 Mar 2022 19:47:56 -0000 1.3
> +++ pkg/transmission_daemon.rc 31 Jan 2026 19:17:08 -0000
> @@ -5,6 +5,4 @@ daemon_user="_transmission"
>
> . /etc/rc.d/rc.subr
>
> -rc_reload=NO
> -
> rc_cmd $1
>

No comments:

Post a Comment