From 06edfb6d45ca676307ccb2bd2a03ed98708de851 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 26 Jun 2020 06:49:35 +0000 Subject: [PATCH] docs cleanup --- serviceman/README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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 -- 2.25.1