I would like to stop the DVR server when my MacBook Pro battery is at a specific value (25% for example) and restart the server when AC power returns. This will allow the MacBook to go into deep sleep and recover when power returns. (I need to stay logged in on the MAC because I need transcoding; I can’t auto login because I need FileVault.)
Any ideas for a configuration change or a Terminal script/process to do this? Getting rid of the Channels “do not sleep” assertion would also work since I have Amphetamine to prevent sleep until a determined battery level.