Thanks, pmset was the missing piece. I put together a pair of shell
one-liners that saves the current setting in Before, and restores it in
After. The real test will be when it runs overnight, but so far it looks
promising.

On Wed, Feb 6, 2019 at 2:57 PM Dimitri Maziuk via Bacula-users <
bacula-users@lists.sourceforge.net> wrote:

> On 2/6/19 4:14 PM, David Brodbeck wrote:
>
> > I think I'm barking up the wrong tree and the ClientBeforeJob
> functionality
> > just isn't meant for this sort of thing. I gather from earlier
> conversation
> > that it was only working for me in 7.4.x because of a bug.
>
> From a brief look at google it seems you're barking up the wrong tree in
> that it is caffeinate that won't detach from the terminal because it
> must catch its Ctrl+C to decaf.
>
> I would look at using pmset to disable sleep in Before and re-enable in
> AfterJob -- though it's probably a PITA if you have custom power
> settings and want to restore them after.
>
> --
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


-- 
David Brodbeck
System Administrator, Department of Mathematics
University of California, Santa Barbara
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to