Http server written in golang to execute some commands
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
.gitignore
.travis.yml
CHANGELOG.md
README.md
build_deb.sh
configuration.json
control
default
rest2command.go
rest2command_test.go

README.md

Build Status

Coverage Status

rest2command

Http server written in golang to execute some command

Environment variables

LOG_LEVEL (debug|info|warn|error|fatal)
PORT (default 8891)
FILE_CONFIGURATION (default ./configuration.json)

Configuration file

[
  {
  "url": "/change/opt1",
  "command": "/opt/opt1.sh",
  "args": "args1 args2"
  },
  {
    "url": "/change/opt2",
    "command": "/opt/opt2.sh"
  }
]