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

Re: [HTCondor-users] preserve on/off state over restart



Hi,

I'm just wondering: isn't there some way to have a hook script or
command which automatically runs whenever a daemon starts/stops? Or
whenever condor_on/off invoked? I'd like to put down on the filesystem
some kind of flag-file which I can use after a reboot/restart to
recover the last known state (on/off) of a daemon...

Thanks,
Daniel

2014-03-18 8:42 GMT+01:00 Pek Daniel <pekdaniel@xxxxxxxxx>:
> Thanks, this is an easy and clever compromise!
>
> 2014-03-17 17:32 GMT+01:00 Todd Tannenbaum <tannenba@xxxxxxxxxxx>:
>> On option is to set START_DAEMONS=False knob in the config file; you could
>> do this remotely via condor_config_val -set.  Cut-n-pasted from section 3.3
>> of the Manual below...  "HTCondor... there's a knob for that" (tm)
>>
>> regards,
>> Todd
>>
>>
>> START_MASTER
>>     If this setting is defined and set to False when the condor_master
>> starts up, the first thing it will do is exit. This appears strange, but
>> perhaps you do not want HTCondor to run on certain machines in your pool,
>> yet the boot scripts for your entire pool are handled by a centralized This
>> is an entry you would most likely find in a local configuration file, not a
>> global configuration file.
>>
>> START_DAEMONS
>>     This macro is similar to the $(START_MASTER) macro described above.
>> However, the condor_master does not exit; it does not start any of the
>> daemons listed in the $(DAEMON_LIST). The daemons may be started at a later
>> time with a condor_on command.
>>
>>
>>
>>
>> On 3/17/2014 11:24 AM, Pek Daniel wrote:
>>>
>>> I need to turn off the daemons.
>>>
>>> 2014-03-17 16:21 GMT+01:00 Ben Cotton <ben.cotton@xxxxxxxxxxxxxxxxxx>:
>>>>
>>>> Daniel,
>>>>
>>>> I think it depends on what you're trying to accomplish. Do you need
>>>> the daemons to turn off, or do you just want a node to not run jobs?
>>>>
>>>>
>>>> --
>>>> Ben Cotton
>>>> main: 888.292.5320
>>>>
>>>> Cycle Computing
>>>> Leader in Utility HPC Software
>>>>
>>>> http://www.cyclecomputing.com
>>>> twitter: @cyclecomputing
>>>> _______________________________________________
>>>> HTCondor-users mailing list
>>>> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with
>>>> a
>>>> subject: Unsubscribe
>>>> You can also unsubscribe by visiting
>>>> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>>>>
>>>> The archives can be found at:
>>>> https://lists.cs.wisc.edu/archive/htcondor-users/
>>>
>>> _______________________________________________
>>> HTCondor-users mailing list
>>> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with
>>> a
>>> subject: Unsubscribe
>>> You can also unsubscribe by visiting
>>> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>>>
>>> The archives can be found at:
>>> https://lists.cs.wisc.edu/archive/htcondor-users/
>>>
>>
>>
>> --
>> Todd Tannenbaum <tannenba@xxxxxxxxxxx> University of Wisconsin-Madison
>> Center for High Throughput Computing   Department of Computer Sciences
>> HTCondor Technical Lead                1210 W. Dayton St. Rm #4257
>> Phone: (608) 263-7132                  Madison, WI 53706-1685
>>
>> _______________________________________________
>> HTCondor-users mailing list
>> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
>> subject: Unsubscribe
>> You can also unsubscribe by visiting
>> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>>
>> The archives can be found at:
>> https://lists.cs.wisc.edu/archive/htcondor-users/