doc:appunti:linux:sa:poweroff_reboot_problem
This is an old revision of the document!
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 is 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.1773056858.txt.gz · Last modified: by niccolo
