[monitor-service] Add ability to run monitor as a service