Created attachment 866966 [details, diff] Patch for init.d/tgtd I have rewritten the init script for tgt because the existing one has some problems. The existing script is based on an example from upstream, but it was written for SysV init, and not OpenRC. It uses, for example $RUNLEVEL instead of $RC_RUNLEVEL. The new script is using OpenRC functions, and (hopefully) correctly handles reboots and configuration changes. Thanks
Created attachment 866967 [details] init.d/tgtd script
Created attachment 866968 [details] conf.d/tgtd config file
Created attachment 867002 [details] New init.d/tgtd script Small update with shellcheck. Also remove some curly brackets that aren't needed.
Created attachment 867003 [details, diff] Patch for init.d/tgtd
I know it's asking more of you, but would you like to submit a pull request to https://github.com/gentoo/gentoo/ That would allow attributing the change to you.
https://github.com/gentoo/gentoo/pull/32172
I made an updated PR at https://github.com/gentoo/gentoo/pull/32197
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a5c6ac8c88119c492a4a4dadcfce9aceb44b9a5 commit 3a5c6ac8c88119c492a4a4dadcfce9aceb44b9a5 Author: Matthew Thode <prometheanfire@gentoo.org> AuthorDate: 2023-08-15 18:53:02 +0000 Commit: Matthew Thode <prometheanfire@gentoo.org> CommitDate: 2023-08-15 18:53:02 +0000 sys-block/tgt: make init scripts posix compliant Thanks to Forza-tng for the new scripts Closes: https://bugs.gentoo.org/911680 Closes: https://bugs.gentoo.org/836690 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> sys-block/tgt/files/tgtd.confd-new | 7 ++ sys-block/tgt/files/tgtd.initd-new | 136 +++++++++++++++++++++++++++++++++++++ sys-block/tgt/tgt-1.0.87-r1.ebuild | 61 +++++++++++++++++ 3 files changed, 204 insertions(+)