Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

Add shutdown to System menu? #10

Open
NelsonPJ opened this issue Jan 14, 2018 · 2 comments
Open

Add shutdown to System menu? #10

NelsonPJ opened this issue Jan 14, 2018 · 2 comments

Comments

@NelsonPJ
Copy link

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

@mcuadros
Copy link
Owner

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

@Dryphter
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants