Summary: | sys-apps/preload: init.d script is not POSIX shell compliant | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | New packages | Assignee: | Pacho Ramos <pacho> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | binki, esigra, qiaomuf |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 299140 | ||
Bug Blocks: | |||
Attachments: |
patch for preload-0.64.init.in
New init.d script Diff against the original script |
Description
Michał Górny
2010-03-21 10:31:01 UTC
I no longer use this application and have dropped maintainer-ship. Created attachment 244507 [details, diff]
patch for preload-0.64.init.in
I guess this could solve the problem. But for kill function, someone suggest use kill -[0-9] or -[A-Z] instead of the signal name. I'm not sure if this is true.
Will look at it as soon as I have time to, thanks :-) As a side note, if you have any idea about how to solve bug #299140 I will really appreciate it (if you don't know, no problem of course ;-)) Thanks a lot (In reply to comment #3) > As a side note, if you have any idea about how to solve bug #299140 I will > really appreciate it (if you don't know, no problem of course ;-)) I'll try to prepare a combined patch in a while. Created attachment 246276 [details]
New init.d script
The script has been made POSIX compliant. The race condition related to ionice use has been fixed. Additional error handling has been added. Script and command definitions for OpenRC have been added.
Created attachment 246277 [details, diff]
Diff against the original script
Packages with non-posix init scripts need to be fixed; however, this is not a blocker for openrc stabilization. +*preload-0.6.4-r2 (07 Sep 2010) + + 07 Sep 2010; Pacho Ramos <pacho@gentoo.org> +preload-0.6.4-r2.ebuild, + +files/preload-0.6.4.init.in-r1: + Revision bump to fix race condition (bug #299140 by Ambroz Bizjak) and + make it POSIX compliant (bug #310511 by Michał Górny), thanks a lot to + Michał for providing the new init.d script. |