I have a headless media server running ubuntu 18.04. I'd like to run a power management service on it so it suspends or hibernates 10 - 15 minutes after all the disks spin down. sspender works well for this but there's a problem. It has to be launched from a terminal window, and is only active while that terminal is open. It will survive suspend/wake cycles but not a reboot. I have to relaunch it manually. Can anyone tell me how to do that remotely so it stays running? It's not convenient to haul a monitor and keyboard into my laundry room every time I reboot.
I can launch it from SSH, or by opening a terminal on a remote desktop connection. However the process is killed as soon as I disconnect either session.
I've tried launching it at boot with Crontab entries but it doesn't work.
I've also tried Powernap, but can't get that to work at all.
nohup sspender &
?