Blog/tgtd: OpenRC update
From Forza's ramblings
tgtd: OpenRC update[edit | edit source]
tgtd v1.0.88 was recently released but unfortunately there was a small mistake in the OpenRC init.d script that I've provided, which prevented custom tgtd_opts
from being used.
A fixed has been submitted upstream https://github.com/fujita/tgt/commit/9081ee8def170a17154d4bec99fac90ba8f84992 but a new release isn't out yet.
The fix is easy, simply add tgtd_opts
to command_args_background
:
# diff scripts/openrc/tgtd.initd
-command_args_background="--pid-file ${pidfile}"
+command_args_background="--pid-file ${pidfile} ${tgtd_opts}"
The OpenRC scripts are used by the Gentoo Linux sys-block/tgt package and the issue was first reported on their bug tracker: https://bugs.gentoo.org/915140