#!/bin/bash set -x echo "running scheduled stop ..."; echo "sleeping %$SLEEP seconds..." sleep $SLEEP echo "running poweroff..." sudo systemctl poweroff