[Linux-ha-dev] Shutdown process
lmb at suse.de
Sat Jun 19 08:54:25 MDT 2004
Alan Robertson <alanr at unix.sh> said:
> >For now, the approach of starting them in the order in the config file
> >and stopping them in the reverse order seems to be the best; we simply
> >send them a signal - SIGTERM seems quite fine for "normal shutdown
> >The feedback signal "I'm stopped successfully" is implicit by the
> >process going away, and if it goes beyond some (huge) timeout, we go
> >into emergency shutdown, effectively tearing down the node by force.
> >One of these days we may need more complex dependency tracking, but for
> >now, I'd be happy with this.
> OK. No argument.
That actually shouldn't be too big a patch to the child process
handling. Maybe sunjd (who already did the heartbeat under apphbd
control) would like to pick it up?
BTW, I'm also thinking that all children likely should be monitored by
crmd also needs all this for it's own sub-processes, too, so having it
in a library would be cool - I think proctrack won't need that much more
changes except a glist for the ordering.
> In the shorter term, we may need to create a master "HA" script which
> starts and stops the other services in the right order - so that we can
> start up/shut down everything without doing so to the entire system.
Well, I've actually thought about this. And, there's significant
difference between "I'm a cluster member" and "I'm not", that it might
warrant a special runlevel even - cC seem to be unused (w/o, w/ X) or
even 8/9 ... But that may be way out there ;-)
Besides, there's different levels which we can go down to - no cluster
membership at all, cluster membership but no resources allowed to run
locally etc... This will need mapping. For now though, the full vs none
approach will do nicely.
Lars Marowsky-Brée <lmb at suse.de>
High Availability & Clustering \ ever tried. ever failed. no matter.
SUSE Labs | try again. fail again. fail better.
Research & Development, SUSE LINUX AG \ -- Samuel Beckett
More information about the Linux-HA-Dev