Does anyone have a nice way to remotely start/stop the DR VraySpawner service/program from the monitor on multiple machines? I’ve been playing with writting a script that will do this based on the code from the start/stop service script but its not working! Ryan has been helping, but I wondered if someone else has already got a nice way I could try?
We do this with the PsService utility that’s part of Microsoft’s SysInternals collection, PsTools. We configure the spawners to run as a Windows service, using the still available Microsoft utility srvany, and then use a Deadline OnJobStarted Event script to start them (e.g. RunProcess( “C:\PsService.exe”, ’ “\\” ‘+’ “restart” ‘+’ “vrayrender” ', “C:\” , -1). Again, for our particular needs where our render machines are also used for other purposes, we run an OnJobFinished Event script to shut them down when the render completes. We’ve also found that the spawners take some unpredictable amount of time to unload assets from one job and get ready for another job (there’s some current conversation about this in the V-Ray for Rhino forum on the Chaos Group site) and if the next job comes too quickly the spawners may show “busy” and not contribute. By restarting them with each job we are forcing the job clean-up in a predictable time although adding some overhead to each job.