Options (5)
-n, --namebooleanRun a command as a daemon
Example:
daemon {{[-n|--name]}} "{{name}}" {{command}}-r, --respawnbooleanRun a command as a daemon which will restart if the command crashes
Example:
daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{command}}-A, --attemptsbooleanRun a command as a daemon which will restart if it crashes, with two attempts every 10 seconds
Example:
daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{[-A|--attempts]}} 2 {{[-L|--delay]}} 10 {{command}}-L, --delaybooleanRun a command as a daemon which will restart if it crashes, with two attempts every 10 seconds
Example:
daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{[-A|--attempts]}} 2 {{[-L|--delay]}} 10 {{command}}-l, --errlogbooleanRun a command as a daemon, writing logs to a specific file
Example:
daemon {{[-n|--name]}} "{{name}}" {{[-l|--errlog]}} {{path/to/file.log}} {{command}}Examples (6)
made by @shridhargupta | data from tldr-pages