On 12/19/2013 01:55 PM, Anders Widell wrote:
> Will this work if we do /etc/init.d/opensafd stop followed by 
> /etc/init.d/opensafd start with no reboot in between?

Yes. the init script opensafd kills everything, first:

stop() {
         logger -t $prog "Stopping OpenSAF Services"

         killall -s KILL osaf-transport-monitor >/dev/null 2>&1


then:

final_clean() {
         # Loop throught all the OpenSAF LSB CLC-CLI scripts to clean staling 
pid/lock
         killall -s KILL osaf-transport-monitor >/dev/null 2>&1

         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

         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
                 rm -f $pkglocalstatedir/osaf_dtm_intra_server
         fi

/Hans

>
> regards,
> Anders Widell
>
> 2013-12-19 13:50, Hans Feldt skrev:
>>   osaf/services/infrastructure/dtms/scripts/osaf-dtm.in |  4 ++++
>>   1 files changed, 4 insertions(+), 0 deletions(-)
>>
>>
>> diff --git a/osaf/services/infrastructure/dtms/scripts/osaf-dtm.in
>> b/osaf/services/infrastructure/dtms/scripts/osaf-dtm.in
>> --- a/osaf/services/infrastructure/dtms/scripts/osaf-dtm.in
>> +++ b/osaf/services/infrastructure/dtms/scripts/osaf-dtm.in
>> @@ -54,6 +54,10 @@ start() {
>>   }
>>   stop() {
>> +    # if called by AMF (as during opensaf shutdown) just exit, init script 
>> will
>> +    # eventually take down dtmd
>> +    test -n "$SA_AMF_COMPONENT_NAME" && exit 0
>> +
>>       echo -n "Stopping $prog: "
>>       killproc -p $pidfile $prog
>>       RETVAL=$?
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics 
>> Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Opensaf-devel mailing list
>> Opensaf-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/opensaf-devel
>>
>>
>
>
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to