mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
doc(serviceman): --agent instead of --user
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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/`)
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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/
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user