Hi,

We might have discussed this before but, i think there is a small chance
for the following to happen during the opensafd stop scenario. 

        for cmd in `ls $pkgclcclidir/osaf-*`; do
                # skip dtm here to allow shutdown of other services (e.g. amfd)
===>            if [ "$cmd" != "$pkgclcclidir/osaf-dtm" ] && [ "$cmd" != 
"$pkgclcclidir/osaf-transport-monitor" ]; then
                        $cmd stop >/dev/null 2>&1
                fi
        done
[Mathi]
AMFD clc-cli script would have got invoked because of the above lines. (This 
does not necessarily mean that the script has finished execution!)

        if [ "$MDS_TRANSPORT" = "TIPC" ]; then
                unload_tipc
        else
                # stop dtm, now all dependent services should be stopped
====>           $pkgclcclidir/osaf-dtm stop >/dev/null 2>&1
[Mathi]
By the time osaf-dtm is killed, there is a possibility that osaf-amfd has still 
not exited. 
Is it possible? If so, we might have to probably check and wait for the amfd 
pid to disappear before doing the kill here?
 
                rm -f $pkglocalstatedir/osaf_dtm_intra_server
        fi

What do you say?

Thanks,
Mathi.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to