update README
This commit is contained in:
parent
b74d9f4332
commit
f9631d852a
28
README.md
28
README.md
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue