runit-user-services/README.md

22 lines
895 B
Markdown
Raw Permalink Normal View History

2023-08-20 15:32:34 +00:00
# runit user service files
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
2023-08-21 09:34:22 +00:00
logging to `$SVLOGDIR`. If unset, defaults 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.
2023-08-20 16:00:42 +00:00
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
2023-08-20 16:00:42 +00:00
```
2023-08-21 09:34:22 +00:00
- `utils/svlogs`: like svlogtail for user services. ZSH completion file available in
`utils/completions`