We have a form of this script already for our Macs which only onlines between the hours of 10pm and 8am.
On Apr 7, 2012, at 9:00 AM, Greg Ercolano wrote:
[posted to rush.general]
On 04/06/12 19:14, Mr. Daniel Browne wrote:
> [posted to rush.general]
>
> Does anyone have a good technique for automatically onlining a linux =
> machine if a user has left their desktop session logged in after they =
> leave? I'm trying some experiments with a perl script keying off of =
> gnome screensaver activity but I somehow don't think it will work, at =
> least not with the calls I'm using.=20
The trouble with this is you don't want to online the box
if the person leaves the machine with interactive renders running.
Or consider the situation where the director of the show is
doing an onsite visit, and the artist loads up a large, slow
to load image playback, and leaves it in 'pause', then runs
off to the director's meeting; screensaver kicks in, machine
goes online, renders kick in and need the memory, the OOM killer
is triggered when the machine starts running out of ram, killing
the playback, and when the director comes over to the artist's
workstation, the loaded playback has been killed.
There's the worse case where the artist leaves a scene loaded up
with unsaved work because they take a long phone call, and if the
render kicks in and happens to run the machine out of memory
triggering the OOM, you again have a case where it may kill the
app and the artist looses their work.
It's best if the artist logs out if they're really leaving
for the day, to ensure nothing is left running. Otherwise your
screensaver app might as well auto-log them out, because renders
can kill apps or the machine.
--
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)ext.23
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)
----------
Dan "Doc" Browne
System Administrator
Evil Eye Pictures
dbrowne@(email surpressed)
Office: (415) 777-0666 x105
|