[stgt] [RFC] example init.d script for tgtd
Tomasz Chmielewski
mangoo at wpkg.org
Thu Oct 23 08:35:34 CEST 2008
FUJITA Tomonori schrieb:
> On Mon, 20 Oct 2008 14:37:40 +0200
> Tomasz Chmielewski <mangoo at wpkg.org> wrote:
>
>> Currently, there is no standard way to start and configure tgtd via a init.d script.
>> As a result, even if any distribution packages tgt, it doesn't contain any startup script.
>>
>> So let's help the packagers!
>>
>>
>> Below, an example init.d script which is not distribution specific.
>> Perhaps tgt-admin needs to exit with more meaningful codes - right now, it exits with
>> non zero if something failed totally. It should exit with a specified code in several cases
>> (i.e., target update was generally successful, but some targets were in use - not updated).
>>
>>
>> I suggest placing it in scripts/init.d/tgt.example.
>>
>>
>>
>> Signed-off-by: Tomasz Chmielewski <mangoo at wpkg.org>
>
> As I wrote, having scripts/init.d/tgt.example is fine by me as long as
> the example is good.
>
> Anyone has comments on this script?
>
> One comment from me is that with the latest git tree, we can remove
> 'sleep' trick in the start section.
I'll send an updated version in a couple of hours.
--
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list