A cross-platform service manager.
Go to file
AJ ONeal 63328251fa win: add missing hidewindow syscall 2019-07-03 03:04:28 -06:00
installer some windows fixes 2019-07-03 02:11:50 -06:00
runner win: add missing hidewindow syscall 2019-07-03 03:04:28 -06:00
service windows fixes, mkdir fixes, json cleanup 2019-07-03 00:43:59 -06:00
tools basic functionality works 2019-07-01 02:44:48 -06:00
vendor fix windows build 2019-07-03 00:05:12 -06:00
.gitignore Initial commit 2019-07-01 04:31:31 +00:00
.ignore refactor and add service runner 2019-07-02 23:51:30 -06:00
LICENSE Initial commit 2019-07-01 04:31:31 +00:00
README.md some windows fixes 2019-07-03 02:11:50 -06:00
go.mod fix windows build 2019-07-03 00:05:12 -06:00
go.sum fix windows build 2019-07-03 00:05:12 -06:00
serviceman.go some windows fixes 2019-07-03 02:11:50 -06:00

README.md

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