mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 13:00:49 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user