daemon

Run processes into daemons.

TLDR

Run a command as a daemon

$ daemon --name="[name]" [command]
copy


Run a command as a daemon which will restart if the command crashes
$ daemon --name="[name]" --respawn [command]
copy


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]
copy


Run a command as a daemon, writing logs to a specific file
$ daemon --name="[name]" --errlog=[path/to/file.log] [command]
copy


Kill a daemon (SIGTERM)
$ daemon --name="[name]" --stop
copy


List daemons
$ daemon --list
copy

Copied to clipboard