Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/daemon Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`