doc:appunti:linux:sa:poweroff_reboot_problem
Problem with poweroff doing reboot instead
Scenario: Debian 13 Trixie, wake-on-lan enabled, poweroff command in cronjob.
The poweroff command is executed, but it turns out to be a reboot instead. The poweroff command works as expected if executed from the terminal.
The solution was to execute /usr/bin/systemctl poweroff instead of /usr/sbin/poweroff. Here it is the cronjob entry:
# Auto poweroff after weekly backup. 20 17 * * 5 root /usr/bin/systemctl poweroff
doc/appunti/linux/sa/poweroff_reboot_problem.txt · Last modified: by niccolo
