Update cheatsheets

This commit is contained in:
ivuorinen
2026-03-17 00:27:40 +00:00
parent 6ccb3a7063
commit b991df9a48
3 changed files with 23 additions and 11 deletions

View File

@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
- Run a command as a daemon:
`daemon --name="{{name}}" {{command}}`
`daemon {{[-n|--name]}} "{{name}}" {{command}}`
- Run a command as a daemon which will restart if the command crashes:
`daemon --name="{{name}}" {{[-r|--respawn]}} {{command}}`
`daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{command}}`
- Run a command as a daemon which will restart if it crashes, with two attempts every 10 seconds:
`daemon --name="{{name}}" {{[-r|--respawn]}} --attempts=2 --delay=10 {{command}}`
`daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{[-A|--attempts]}} 2 {{[-L|--delay]}} 10 {{command}}`
- Run a command as a daemon, writing logs to a specific file:
`daemon --name="{{name}}" --errlog={{path/to/file.log}} {{command}}`
`daemon {{[-n|--name]}} "{{name}}" {{[-l|--errlog]}} {{path/to/file.log}} {{command}}`
- Kill a daemon (SIGTERM):
`daemon --name="{{name}}" --stop`
`daemon {{[-n|--name]}} "{{name}}" --stop`
- List daemons: