OctoPrint-TFT icon indicating copy to clipboard operation
OctoPrint-TFT copied to clipboard

Add shutdown to System menu?

Open NelsonPJ opened this issue 7 years ago • 2 comments

I see that you have a "reboot" button in the System menu - can you also add a "shutdown" button?

I also don't think the "reboot" button does a reboot as cleanly as what's built into OctoPrint? I think both the reboot and shutdown buttons should look for commands defined in the "server:" portion of the config.yaml (as shown below)

server:
  commands:
    serverRestartCommand: sudo service octoprint restart
    systemRestartCommand: sudo shutdown -r now
    systemShutdownCommand: sudo shutdown -h now

NelsonPJ avatar Jan 14 '18 21:01 NelsonPJ

The reboot button, its exactly systemRestartCommand, but yes, we can add it without problem.

mcuadros avatar Jan 15 '18 10:01 mcuadros

Shutdown button would be great. I was looking at this but don't know how to create a button or place it on the screen in the right spot.

Dryphter avatar Jan 10 '19 19:01 Dryphter