Server and process management
Analytics comes with its own process manager pm2 for start/stop and checking health of your nodejs servers.
Checking Status
sudo countly statusIf there are no servers running, try:
start analytics
sudo countly startIf there is already a countly running and "sudo countly status" doesnt list you two running node servers, it could be, that you have to use the root shell (sudo su) and then "countly status". This is a problem in the node module with is used as process management tool.
Process Manager
Since version 1.1.2 apiomat analytics is using pm2 as process manager. This provides more useful features, that you can access with following commands:
pm2 usage
# Process Monitoringsudo pm2 list # List all processes started with PM2sudo pm2 show [countly-api|countly-dashboard] # Show all information about application# Log managementsudo pm2 logs # Display logs of all appssudo pm2 logs [countly-api|countly-dashboard] # Display logs for a specific app