https://github.com/zocker-160/web-shutdown
Very simple tool which allows you to trigger shutdown / reboot using a HTTP GET request.
https://github.com/zocker-160/web-shutdown
Last synced: 12 months ago
JSON representation
Very simple tool which allows you to trigger shutdown / reboot using a HTTP GET request.
- Host: GitHub
- URL: https://github.com/zocker-160/web-shutdown
- Owner: zocker-160
- License: agpl-3.0
- Created: 2023-04-25T09:59:00.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T10:54:00.000Z (about 3 years ago)
- Last Synced: 2025-02-22T08:58:55.830Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`