Add log viewing helper based on svlogtail
This commit is contained in:
parent
d119404ae4
commit
f9bc7405a9
3 changed files with 63 additions and 5 deletions
15
README.md
15
README.md
|
@ -3,15 +3,20 @@
|
|||
Various runit service files for per-user services. May need to be modified to work on your system.
|
||||
|
||||
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.
|
||||
- `log`: symlink as the `run` script in your service's log directory to enable
|
||||
logging to `~/.local/log/`
|
||||
- `utils/setup-supervise.zsh`: run to create symlinks for `supervise`
|
||||
directories, so they are created in $XDG_RUNTIME_DIR
|
||||
- `utils/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
|
||||
```sh
|
||||
utils/new-service -l my-daemon --foreground -a -b -c
|
||||
```
|
||||
./new-service -l my-daemon --foreground -a -b -c
|
||||
```
|
||||
- `utils/svlogs`: like svlogtail for user services. Uses $SVLOGDIRS or
|
||||
`~/.local/log/` as base dir. ZSH completion file available in
|
||||
`utils/completions`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue