- **Comment**:
One solution is to modify the instantiation part of the middleware clc-cli
scripts such that the instantiation first kills the process before starting
again.
But, the instantiate() should be able to differentiate between a first
instantiation versus instantiation followed by a termination (i.e. the initial
startup versus startup after an adm-restart of the component).
This differentiation can be done by making the node directors 'touch' a
temporary file.
i.e. Inside the AMF terminate callback of the node directors,
amf_comp_terminate_callback()
{
system("touch PKGLOCALSTATEDIR/term_status_file");
}
And, the clc-cli scripts of node directors will be modified like this
instantiate() // this is currently start() for some node directors.
{
#If it's after a termination, attempt to kill again
[ -e $term_status_file ] && killproc -p $pidfile $binary
echo "starting $prog: "
......
rm -f $term_status_file
return ...
}
---
** [tickets:#1326] middleware comp-restart fails when daemon did not exit
completely**
**Status:** assigned
**Milestone:** 4.5.2
**Created:** Tue Apr 21, 2015 02:03 PM UTC by Mathi Naickan
**Last Updated:** Tue Apr 21, 2015 02:03 PM UTC
**Owner:** Mathi Naickan
Admin restart of middleware node director components seem to be failing on RHEL
and this looks like is reproducible on some SLES machines!
amf-adm restart <DN name of OpenSAF node director> can fail if the daemon did
not completely exit(after component termination) by the time re-instantiation
is attempted by AMF.
It needs to be explored if it's an OpenSAF problem to solve or whether we could
allow for mechanisms such as
- waiting (by sleep) inside the instantiation script for a while before
invoking start_daemon
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets