The infinite mode waits for a SIGINT or SIGTERM