Shutdown/Restart doesn't work

What is the problem?

Hello

The commands Shutdown/Restart from octoprint doesn't work

What did you already try to solve it?

I tried to change the commands (shutdown to systemctl) I tried to add the user to the sudo group and finally tried to apply the solution of (Restart/shutdown through OctoPrint's system menu dosn't work) but it didn't work

When I tried to use the command appears "Success, the command "shutdown system" executed successfully.

Complete Logs

I added in the /etc/sudoers

santiago ALL=(ALL) NOPASSWD:/usr/bin/systemctl poweroff,/usr/bin/systemctl reboot,/usr/bin/systemctl restart octoprint

Additional information

Octoprint Version 1.4.2 installed on lubuntu.
Printer Anet A8+ with Marlin 2

Thanks for your help

I changed

santiago ALL=(ALL) NOPASSWD:/bin/systemctl poweroff,/bin/systemctl reboot,/bin/systemctl restart octoprint

And It works.

Thanks :slight_smile:

1 Like