update README

This commit is contained in:
AJ ONeal 2019-07-10 01:48:55 -06:00
parent b74d9f4332
commit f9631d852a
1 changed files with 54 additions and 48 deletions

View File

@ -38,30 +38,36 @@ Because debugging launchctl, systemd, etc absolutely sucks!
# Usage # Usage
The basic pattern of usage, and what that might look like: The basic pattern of usage:
``` ```
serviceman add [options] [interpreter] <service> -- [service options] serviceman add [options] [interpreter] <service> -- [service options]
serviceman start <service>
serviceman stop <service>
serviceman version
```
And what that might look like:
```
# Here the service is named "foo" implicitly
# '--bar /baz' is passed as arguments to foo.exe
serviceman add foo.exe -- --bar /baz
``` ```
``` ```
serviceman add foo.exe # Here the service is named "foo-app" explicitly
# 'node' will be found in the path
# './index.js' will be resolved to a full path
serviceman add --name "foo-app" node ./index.js
``` ```
``` You can also view the help:
serviceman add --title "Foo App" node ./foo.js -- --bar
```
You can also view the help and the version:
``` ```
serviceman add --help serviceman add --help
``` ```
```
serviceman version
```
# Install # Install
There are a number of pre-built binaries. There are a number of pre-built binaries.