Install latest/stable of powerswitch
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Install using the command line
sudo snap install powerswitch
Don't have snapd? Get set up for snaps.
This snap provides a simple set of API to reboot or shutdown an Ubuntu Core system using curl.
How to use it
System reboot: curl http://target-ip-address:3500/reboot
System shutdown: curl http://target-ip-address:3500/poweroff
Before using it
Remember to connect the shutdown interface to this snap. Just run
snap connect powerswitch:shutdown
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
You are about to open
Do you wish to proceed?
Generate an embeddable card to be shared on external websites.
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.