zocker-160 / web-shutdown

Very simple tool which allows you to trigger shutdown / reboot using a HTTP GET request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web-shutdown

Very simple tool which allows you to trigger shutdown / reboot using a HTTP GET request.

Build

You need a Linux system and golang installed

  • git clone this repository
  • go build web-shutdown.go

Run

./web-shutdown [port]

If no port is specified, 8080 will be used by default.

Commands

  • /: shows very basic website with links to the available triggers
  • /cmd/shutdown: trigger a shutdown
  • /cmd/reboot: trigger a reboot

Installation as systemd service

  • copy compiled binary to /usr/local/bin or /usr/bin
  • copy webshutdown.service to /etc/systemd/system
  • sudo systemctl enable webshutdown
  • sudo systemctl start webshutdown

About

Very simple tool which allows you to trigger shutdown / reboot using a HTTP GET request.

License:GNU Affero General Public License v3.0


Languages

Language:Go 100.0%