I need to turn off device for selected period of time. I’ve found a way to do it with:
pmtool bootOn timer 120 pmtool shutdown
pmtool shutdown turns off device immediately, without running rcK scripts, which could lead to filesystem corruption.
I’ve tried to use
poweroff, but it ignores timer.
What should I use for graceful shutdown?