doc(serviceman): --agent instead of --user

This commit is contained in:
AJ ONeal
2024-12-12 00:05:55 +00:00
parent 3995b7e568
commit e2ad197067
5 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -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
```

View File

@@ -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
```
@@ -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/`)

View File

@@ -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
```
@@ -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
```

View File

@@ -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/
```