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 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: