Re: [RFC] example init.d script for tgtd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 21 Oct 2008 13:27:04 +0200
Tomasz Chmielewski <mangoo@xxxxxxxx> wrote:

> ronnie sahlberg schrieb:
> 
> (...)
> 
> >> the RHEL script will probably fail to start here (may depend on machine,
> >> load etc.):
> >>
> >>        daemon tgtd $TGTD_OPTIONS
> >>
> >>        # read the config        tgt-admin -e -c "${TGTD_CONFIG}"
> >>
> >>
> >> tgtd starts in the background immediately, but does not yet accept commands
> >> from tgtadm. So adding "sleep 1" between starting tgtd and tgt-admin should
> >> help.
> >>
> > 
> > Having to explicitely add a sleep in scripts is a bit dodgy.
> > 
> > Maybe better to enhance tgtadm to try-and-retry for x seconds before
> > giving up and thus hiding this
> > ugly race from the average user?
> 
> Or tgtd shouldn't background when it's not ready to accept commands yet.

I guess that 'daemon' program forks tgtd. Then tgtd can't do anything.

open-iscsi daemon might have the same issue?
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux