serviceman/README.md

626 B

go-serviceman

A cross-platform service manager.

Goal:

serviceman install [options] [interpreter] <service> [-- [options]]
serviceman install --user ./foo-app -- -c ./
serviceman install --user /usr/local/bin/node ./whatever.js -- -c ./
serviceman run --config conf.json
{
    "interpreter": "/Program Files (x86)/node/node.exe",
    "exec": "/Users/aj/demo/demo.js",
    "argv": ["--foo", "bar", "--baz", "qux"]
}
go generate -mod=vendor ./...
go build -mod=vendor -ldflags "-H=windowsgui"
.\\go-serviceman node ./demo.js -- --foo bar --baz qux