HTCondor Project List Archives



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

Re: [Condor-devel] LSB-ish init script for Condor



Peter Keller wrote:
On Fri, Feb 15, 2008 at 01:08:24PM -0600, Alain Roy wrote:
Why not use condor_off -master? I'm not sure I have an opinion, I'm just curious.

Well, condor_off -master could actually take a very long time to shut
off condor due to various things "nicely" exiting. condor_off -master
-fast would probably be better.

However, if you're screwing around with your config files, happening to alter
something about how Condor authenticates tools talking to it, then your
attempt to stop it would be left with a permission denied in the master log
and the daemons running. This is most likely unacceptable.

If you wanted to be "nice" in shutting off condor, then do an off
-master -fast, wait a bit, see if the process is still alive, then kill
it with -TERM, see if it is alive, then put it down with -9.

Thank you.

-pete

Actually, killproc sends a -TERM then waits a bit and sends a -KILL. If I read the MasterLog correctly the -TERM signals a graceful shutdown, which gets about 4 seconds to work before the -KILL hits.

Best,


matt