[Stgt-devel] [PATCH] in tgt-setup-lun: fix check if tgtd daemon is running

Doron Shoham dorons
Sun Apr 6 08:56:49 CEST 2008


FUJITA Tomonori wrote:
> On Tue, 01 Apr 2008 17:31:05 +0300
> Doron Shoham <dorons at voltaire.com> wrote:
> 
>> Checking if the tgtd daemon is running should be
>> done with pidof
>>
>> Signed-off-by: Doron Shoham <dorons at voltaire.com>
>> ---
>>  scripts/tgt-setup-lun |   13 ++++++++-----
>>  1 files changed, 8 insertions(+), 5 deletions(-)
> 
> Thanks, looks nice.
> 
> But the old script checks there are two tgtd daemons running. The new
> one doesn't. Can you improve the new one to do that?

Why tgtd has two daemons (process)?

When running tgtd with -f flag it has only one process,
why is it?

So if I'll check for two process the script will exit.

> 
> Note that one of the two tgtd daemons could die due to a bug.
When does it happen?

Thanks,
Doron



More information about the stgt mailing list