Run a command as a daemon which will restart if the command crashes

daemon

daemon --name="{{name}}" --respawn {{command}}

click the source code to copy install daemon on any operating system with command-not-found.com