From: AJ ONeal Date: Fri, 26 Jun 2020 06:49:35 +0000 (+0000) Subject: docs cleanup X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=06edfb6d45ca676307ccb2bd2a03ed98708de851;p=webi-installers%2F.git docs cleanup --- diff --git a/serviceman/README.md b/serviceman/README.md index 5da5657..53b37b3 100644 --- a/serviceman/README.md +++ b/serviceman/README.md @@ -23,31 +23,37 @@ add the `--dryrun` option. ```bash pushd ./my-node-app/ + sudo env PATH="$PATH" \ - serviceman add --cap-net-bind --system npx nodemon + serviceman add --system --cap-net-bind npx nodemon ``` **Production Server** ```bash pushd ./my-node-app/ + sudo env PATH="$PATH" \ - serviceman add --cap-net-bind --system npm start + serviceman add --system --cap-net-bind npm start ``` ### Golang ```bash pushd ./my-go-package/ + sudo env PATH="$PATH" \ - serviceman add --system go run -mod=vendor cmd/my-service/*.go --port 3000 + serviceman add --system \ + go run -mod=vendor cmd/my-service/*.go --port 3000 ``` ```bash pushd ./my-go-package/ go build -mod=vendor cmd/my-service + sudo env PATH="$PATH" \ - serviceman add --cap-net-bind --system ./my-service --port 80 + serviceman add --cap-net-bind --system \ + ./my-service --port 80 ``` ### And even bash! @@ -60,7 +66,8 @@ sudo env PATH="$PATH" serviceman add bash ./backup.sh /mnt/data ```bash sudo env PATH="$PATH" \ - serviceman add --dryrun bash ./backup.sh /mnt/data + serviceman add --system --dryrun \ + bash ./backup.sh /mnt/data ``` ### See the (sub)command help