the below command when I run from the terminal will keep posting the output to message.log
cf logs broker-analytics > /var/www/cfbrokerlogs/message.log
However, if i close my terminal it will stop working. How do i make it run in the background all the time ? Also If for any reason if it stops execution what would a good approach to check that and make sure it is always running ?
The command simply prints the log when there is any entry made.
I am on a Ubuntu server 14.04.