My institution is trying to reduce energy costs and environmental impact etc so I have a 10 minute display sleep/30 minute sleep configuration profile installed on all machines. This is installed manually using the "profiles" command - I package mobileconfigs and deploy them in scripted packages.
During large installs the machines tend to sleep. For example I have a DMG for Logic Pro X including all the samples which is around 33GB in size. When I look at the Casper logs, i can see the policy start to verify the package (it starts to download) then it starts to install and the logs stop for a long time. At this point the machine has gone to sleep and if I wake it up, the policy that triggered the package install shows that it has completed but the directories are not complete on the machine - in this particular case the Logic samples folder was around 11GB instead of 20+.
I would like to incorporate the caffeinate command into my scripts/packages/installs to guarantee that the machines stay awake and I wanted to know if anyone is using this method or has any idea how best to keep it running while the packages are installed. I could place packages within packages and use a post install script to start the installation of the contained package using "caffeinate installer etc etc" but that doesn't help with DMGs. DMGs have the obvious benefit of spraying user files into the template directory and /Users and I don't want to lose this functionality. I could split the user files off into separate DMGs that would be faster to install but I would prefer to keep program files and user settings in the same place if possible.