1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 14:15:26 +02:00
tldr/pages/linux/daemon.md
Managor 77e10496de
linux/d*: add option placeholders, mnemonics and refresh more info links (#16996)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-06-29 11:32:13 +03:00

28 lines
712 B
Markdown

# daemon
> Turns other processes into daemons.
> More information: <https://manned.org/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}}" {{[-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}}`
- 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`