mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 16:22:08 +02:00
daemon: add page (#8390)
* daemon: add page * daemon: add delay example * Update pages/linux/daemon.md Co-authored-by: Axel Navarro <navarroaxel@gmail.com> * Update pages/linux/daemon.md * Update pages/linux/daemon.md Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
This commit is contained in:
parent
136a6df302
commit
01f68eb87f
1 changed files with 28 additions and 0 deletions
28
pages/linux/daemon.md
Executable file
28
pages/linux/daemon.md
Executable file
|
@ -0,0 +1,28 @@
|
||||||
|
# daemon
|
||||||
|
|
||||||
|
> Run processes into daemons.
|
||||||
|
> More information: <https://manned.org/man/daemon.1>.
|
||||||
|
|
||||||
|
- Run a command as a daemon:
|
||||||
|
|
||||||
|
`daemon --name="{{name}}" {{command}}`
|
||||||
|
|
||||||
|
- Run a command as a daemon which will restart if the command crashes:
|
||||||
|
|
||||||
|
`daemon --name="{{name}}" --respawn {{command}}`
|
||||||
|
|
||||||
|
- Run a command as a daemon which will restart if it crashes, with two attempts every 10 seconds:
|
||||||
|
|
||||||
|
`daemon --name="{{name}}" --respawn --attempts=2 --delay=10 {{command}}`
|
||||||
|
|
||||||
|
- Run a command as a daemon, writing logs to a specific file:
|
||||||
|
|
||||||
|
`daemon --name="{{name}}" --errlog={{path/to/file.log}} {{command}}`
|
||||||
|
|
||||||
|
- Kill a daemon (SIGTERM):
|
||||||
|
|
||||||
|
`daemon --name="{{name}}" --stop`
|
||||||
|
|
||||||
|
- List daemons:
|
||||||
|
|
||||||
|
`daemon --list`
|
Loading…
Add table
Reference in a new issue