new-service: add import-env support
This commit is contained in:
parent
1f44d351ed
commit
684ed6f515
2 changed files with 18 additions and 6 deletions
12
README.md
12
README.md
|
@ -5,7 +5,13 @@ Various runit service files for per-user services. May need to be modified to wo
|
|||
Helper scripts:
|
||||
- `log`: symlink as the `run` script in your service's log directory to enable logging to `~/.local/log/`
|
||||
- `setup-supervise.zsh`: run to create symlinks for `supervise` directories, so they are created in $XDG_RUNTIME_DIR
|
||||
- `new-service`: create a new service, executing the given command line. Optionally pass `-l` before any other arguments to also create a logging entry. Example:
|
||||
- `new-service`: create a new service, executing the given command line.
|
||||
Accepted options before service name:
|
||||
|
||||
- `-l`, `--log`: create a log directory and symlink `log` script
|
||||
- `-i PROC`, `--import-env PROC`: include import-env script and import environment from process `PROC`
|
||||
|
||||
Example
|
||||
```
|
||||
./new-service -l my-daemon --foreground -a -b -c
|
||||
```
|
||||
./new-service -l my-daemon --foreground -a -b -c
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue