void startShadow( ClassAd *ad ) { // see if the SchedD punched a DAEMON-level authorization // hole for this job. if it did, we'll do the same here // MyString auth_hole_id; if (ad->LookupString(ATTR_STARTD_PRINCIPAL, auth_hole_id)) { IpVerify* ipv = daemonCore->getIpVerify(); if (!ipv->PunchHole(DAEMON, auth_hole_id)) { dprintf(D_ALWAYS, "WARNING: IpVerify::PunchHole error for %s: " "job may fail to execute\n", auth_hole_id.Value()); } } initShadow( ad ); int wantClaiming = 0; ad->LookupBool(ATTR_CLAIM_STARTD, wantClaiming); if( is_reconnect ) { Shadow->reconnect(); } else { // if the shadow is going to claim the startd, // we need to asynchrously claim it. // Otherwise, in the usual case under the sched, // call spawn here, which will activate the pre-claimed // startd if (!wantClaiming) { Shadow->spawn(); } } }
void Mage::init3D() { _sprite3d = Sprite3D::create(file); _sprite3d->setScale(1.9); addChild(_sprite3d); _sprite3d->setRotation3D(Vec3(90, 0, 0)); _sprite3d->setRotation(-90); setDefaultEqt(); initShadow(); }