Это делается через команды полетного листа. Вот мануал: https://github.com/qubic-li/hiveos
"idleSettings":{"preCommand":"ping","preCommandArguments":"-c 2 google.com","command":"ping","arguments":"google.com","postCommand":"ping","postCommandArguments":"-c 2 google.com"}
command The command/program to execute. arguments The arguments that should be passed to the command/program. preCommand A command/program to start once the idling period begins. preCommandArguments The arguments that should be passed to the preCommand/program. postCommand A command/program to start once the idling period stops. postCommandArguments The arguments that should be passed to the postCommand/program.