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

Re: [Condor-users] rooster on linux, take 2



On 11/22/2011 12:08 PM, Dan Bradley wrote:

> ROOSTER_UNHIBERNATE = Offline
> 
> That will attempt to unhibernate all offline machines, without reference
> to the machine's unhibernate expression.

OK, thanks.

Setting "UNHIBERNATE = True" on the sleeper node works, as does adding
'requirements = TARGET.Machine == "sleeper.node"' to the submit file.

In case anyone (on a /25 or smaller) wants to get it to work before the
fix is out,
- install wol as ether-wake won't run as condor,
- set ROOSTER_WAKEUP_CMD to
 while(<>) {
 if( /HardwareAddress\s+=\s+\"(\d{2}:\d{2}:\d{2}:\d{2}:\d{2}:\d{2})\"/ )
 { `/usr/bin/wol $1`; last; } }
or its equivalent in your favourite language.

(That is assuming you have only one nic or don't care about sending wol
packets to a wrong subnet.)

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature