Skip to content

Commit

Permalink
doc(serviceman): --agent instead of --user
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Dec 16, 2024
1 parent 3995b7e commit e2ad197
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion brew/brew-update-service-install
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main() { (
serviceman --version
fi

env PATH="$PATH" serviceman add --user \
env PATH="$PATH" serviceman add --agent \
--workdir ~/.local/opt/brew/ \
--name sh.brew.updater -- \
~/.local/bin/brew-update-hourly
Expand Down
2 changes: 1 addition & 1 deletion bun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,6 @@ For **macOS**:
```
3. Add your project to the system launcher, running as the current user
```sh
serviceman add --path="$PATH" --user --name my-project -- \
serviceman add --path="$PATH" --agent --name my-project -- \
bun run ./my-project.js
```
6 changes: 3 additions & 3 deletions caddy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ To avoid the nitty-gritty details of `launchd` plist files, you can use
```sh
my_username="$(id -u -n)"

serviceman add --user --name caddy -- \
serviceman add --agent --name caddy -- \
caddy run --config ./Caddyfile --envfile ~/.config/caddy/env
```

Expand Down Expand Up @@ -915,9 +915,9 @@ See the notes below to run as a **User Service** or use the JSON Config.

To create a **User Service** instead:

- don't use `sudo`, but do use `--user` when running `serviceman`:
- don't use `sudo`, but do use `--agent` when running `serviceman`:
```sh
serviceman add --user --name caddy -- \
serviceman add --agent --name caddy -- \
caddy run --config ./Caddyfile --envfile ~/.config/caddy/env
```
(this will create `~/.config/systemd/user/`)
Expand Down
5 changes: 3 additions & 2 deletions node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ To run them manually on your code;
jhint -c ./.jshintrc *.js */*.js
```
- fixjson \
(turns JavaScript Objects with comments, trailing commas, etc into actual json)
(turns JavaScript Objects with comments, trailing commas, etc into actual
json)
```sh
fixjson -i 2 -w ./package.json
```
Expand Down Expand Up @@ -229,7 +230,7 @@ Node app as a Non-System (Unprivileged) Service on Mac, Windows, and Linux:
```sh
my_username="$(id -u -n)"

serviceman add --user --name my-node-project -- \
serviceman add --agent --name my-node-project -- \
caddy run --config ./Caddyfile --envfile ~/.config/caddy/env
```
Expand Down
2 changes: 1 addition & 1 deletion syncthing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ webi serviceman

```sh
mkdir -p ~/.config/syncthing/
env PATH="$PATH" serviceman add --user --name syncthing -- \
env PATH="$PATH" serviceman add --agent --name syncthing -- \
syncthing --home ~/.config/syncthing/
```

Expand Down

0 comments on commit e2ad197

Please sign in to comment.