User Tools

Site Tools


doc:appunti:linux:sa:poweroff_reboot_problem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

doc:appunti:linux:sa:poweroff_reboot_problem [2026/03/09 12:47] – created niccolodoc:appunti:linux:sa:poweroff_reboot_problem [2026/03/09 12:48] (current) niccolo
Line 1: Line 1:
 ====== Problem with poweroff doing reboot instead ====== ====== 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.+Scenario: Debian 13 Trixie, wake-on-lan enabled, poweroff command in cronjob.
  
-The solution is to execute **/usr/bin/systemctl poweroff** instead of **/usr/sbin/poweroff**. Here it is the cronjob entry:+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:
  
 <code> <code>
doc/appunti/linux/sa/poweroff_reboot_problem.txt · Last modified: by niccolo