Dhanman OVH Server Service Management¶
π Summary checklist of useful commands¶
| Action | Command Example |
|---|---|
| Check status | sudo systemctl status <service> |
| Start | sudo systemctl start <service> |
| Stop | sudo systemctl stop <service> |
| Restart | sudo systemctl restart <service> |
| Enable at boot | sudo systemctl enable <service> |
| Disable at boot | sudo systemctl disable <service> |
| View logs (follow) | sudo journalctl -u <service> -f |
| List active | systemctl list-units --type=service \| grep dhanman |
| List all | systemctl list-unit-files --type=service \| grep dhanman |
πΉ Service Names¶
Prod Services¶
dhanman-common-prod.servicedhanman-community-prod.servicedhanman-document-prod.servicedhanman-inventory-prod.servicedhanman-payroll-prod.servicedhanman-purchase-prod.servicedhanman-sales-prod.service
QA Services¶
dhanman-common-qa.servicedhanman-community-qa.servicedhanman-document-qa.servicedhanman-inventory-qa.servicedhanman-payroll-qa.servicedhanman-purchase-qa.servicedhanman-sales-qa.service
Test Services¶
dhanman-common-test.servicedhanman-community-test.servicedhanman-document-test.servicedhanman-inventory-test.servicedhanman-payroll-test.servicedhanman-purchase-test.servicedhanman-sales-test.service
πΉ Manage all services¶
β List all services matching "dhanman"¶
Copy:
systemctl list-units --type=service | grep dhanman
β List all services including inactive¶
Copy:
systemctl list-unit-files --type=service | grep dhanman
π Check status¶
π Check status all QA services¶
Copy:
sudo systemctl status dhanman-common-qa.service
sudo systemctl status dhanman-community-qa.service
sudo systemctl status dhanman-document-qa.service
sudo systemctl status dhanman-inventory-qa.service
sudo systemctl status dhanman-payroll-qa.service
sudo systemctl status dhanman-purchase-qa.service
sudo systemctl status dhanman-sales-qa.service
π Check status all PROD services¶
Copy:
sudo systemctl status dhanman-common-prod.service
sudo systemctl status dhanman-community-prod.service
sudo systemctl status dhanman-document-prod.service
sudo systemctl status dhanman-inventory-prod.service
sudo systemctl status dhanman-payroll-prod.service
sudo systemctl status dhanman-purchase-prod.service
sudo systemctl status dhanman-sales-prod.service
π Check status all TEST services¶
Copy:
sudo systemctl status dhanman-common-test.service
sudo systemctl status dhanman-community-test.service
sudo systemctl status dhanman-document-test.service
sudo systemctl status dhanman-inventory-test.service
sudo systemctl status dhanman-payroll-test.service
sudo systemctl status dhanman-purchase-test.service
sudo systemctl status dhanman-sales-test.service
βΆοΈ Start services¶
βΆοΈ Start all QA services¶
Copy:
sudo systemctl start dhanman-common-qa.service
sudo systemctl start dhanman-community-qa.service
sudo systemctl start dhanman-document-qa.service
sudo systemctl start dhanman-inventory-qa.service
sudo systemctl start dhanman-payroll-qa.service
sudo systemctl start dhanman-purchase-qa.service
sudo systemctl start dhanman-sales-qa.service
βΆοΈ Start all PROD services¶
Copy:
sudo systemctl start dhanman-common-prod.service
sudo systemctl start dhanman-community-prod.service
sudo systemctl start dhanman-document-prod.service
sudo systemctl start dhanman-inventory-prod.service
sudo systemctl start dhanman-payroll-prod.service
sudo systemctl start dhanman-purchase-prod.service
sudo systemctl start dhanman-sales-prod.service
βΆοΈ Start all TEST services¶
Copy:
sudo systemctl start dhanman-common-test.service
sudo systemctl start dhanman-community-test.service
sudo systemctl start dhanman-document-test.service
sudo systemctl start dhanman-inventory-test.service
sudo systemctl start dhanman-payroll-test.service
sudo systemctl start dhanman-purchase-test.service
sudo systemctl start dhanman-sales-test.service
π΄ Stop services¶
π΄ Stop all QA services¶
Copy:
sudo systemctl stop dhanman-common-qa.service
sudo systemctl stop dhanman-community-qa.service
sudo systemctl stop dhanman-document-qa.service
sudo systemctl stop dhanman-inventory-qa.service
sudo systemctl stop dhanman-payroll-qa.service
sudo systemctl stop dhanman-purchase-qa.service
sudo systemctl stop dhanman-sales-qa.service
π΄ Stop all PROD services¶
Copy:
sudo systemctl stop dhanman-common-prod.service
sudo systemctl stop dhanman-community-prod.service
sudo systemctl stop dhanman-document-prod.service
sudo systemctl stop dhanman-inventory-prod.service
sudo systemctl stop dhanman-payroll-prod.service
sudo systemctl stop dhanman-purchase-prod.service
sudo systemctl stop dhanman-sales-prod.service
π΄ Stop all TEST services¶
Copy:
sudo systemctl stop dhanman-common-test.service
sudo systemctl stop dhanman-community-test.service
sudo systemctl stop dhanman-document-test.service
sudo systemctl stop dhanman-inventory-test.service
sudo systemctl stop dhanman-payroll-test.service
sudo systemctl stop dhanman-purchase-test.service
sudo systemctl stop dhanman-sales-test.service
π Restart services¶
π Restart all QA services¶
Copy:
sudo systemctl restart dhanman-common-qa.service
sudo systemctl restart dhanman-community-qa.service
sudo systemctl restart dhanman-document-qa.service
sudo systemctl restart dhanman-inventory-qa.service
sudo systemctl restart dhanman-payroll-qa.service
sudo systemctl restart dhanman-purchase-qa.service
sudo systemctl restart dhanman-sales-qa.service
π Restart all PROD services¶
Copy:
sudo systemctl restart dhanman-common-prod.service
sudo systemctl restart dhanman-community-prod.service
sudo systemctl restart dhanman-document-prod.service
sudo systemctl restart dhanman-inventory-prod.service
sudo systemctl restart dhanman-payroll-prod.service
sudo systemctl restart dhanman-purchase-prod.service
sudo systemctl restart dhanman-sales-prod.service
π Restart all TEST services¶
Copy:
sudo systemctl restart dhanman-common-test.service
sudo systemctl restart dhanman-community-test.service
sudo systemctl restart dhanman-document-test.service
sudo systemctl restart dhanman-inventory-test.service
sudo systemctl restart dhanman-payroll-test.service
sudo systemctl restart dhanman-purchase-test.service
sudo systemctl restart dhanman-sales-test.service
βοΈ Enable services at boot¶
βοΈ Enable all QA services¶
Copy:
sudo systemctl enable dhanman-common-qa.service
sudo systemctl enable dhanman-community-qa.service
sudo systemctl enable dhanman-document-qa.service
sudo systemctl enable dhanman-inventory-qa.service
sudo systemctl enable dhanman-payroll-qa.service
sudo systemctl enable dhanman-purchase-qa.service
sudo systemctl enable dhanman-sales-qa.service
βοΈ Enable all PROD services¶
Copy:
sudo systemctl enable dhanman-common-prod.service
sudo systemctl enable dhanman-community-prod.service
sudo systemctl enable dhanman-document-prod.service
sudo systemctl enable dhanman-inventory-prod.service
sudo systemctl enable dhanman-payroll-prod.service
sudo systemctl enable dhanman-purchase-prod.service
sudo systemctl enable dhanman-sales-prod.service
βοΈ Enable all TEST services¶
Copy:
sudo systemctl enable dhanman-common-test.service
sudo systemctl enable dhanman-community-test.service
sudo systemctl enable dhanman-document-test.service
sudo systemctl enable dhanman-inventory-test.service
sudo systemctl enable dhanman-payroll-test.service
sudo systemctl enable dhanman-purchase-test.service
sudo systemctl enable dhanman-sales-test.service
π Disable services at boot¶
π Disable all QA services¶
Copy:
sudo systemctl disable dhanman-common-qa.service
sudo systemctl disable dhanman-community-qa.service
sudo systemctl disable dhanman-document-qa.service
sudo systemctl disable dhanman-inventory-qa.service
sudo systemctl disable dhanman-payroll-qa.service
sudo systemctl disable dhanman-purchase-qa.service
sudo systemctl disable dhanman-sales-qa.service
π Disable all PROD services¶
Copy:
sudo systemctl disable dhanman-common-prod.service
sudo systemctl disable dhanman-community-prod.service
sudo systemctl disable dhanman-document-prod.service
sudo systemctl disable dhanman-inventory-prod.service
sudo systemctl disable dhanman-payroll-prod.service
sudo systemctl disable dhanman-purchase-prod.service
sudo systemctl disable dhanman-sales-prod.service
π Disable all TEST services¶
Copy:
sudo systemctl disable dhanman-common-test.service
sudo systemctl disable dhanman-community-test.service
sudo systemctl disable dhanman-document-test.service
sudo systemctl disable dhanman-inventory-test.service
sudo systemctl disable dhanman-payroll-test.service
sudo systemctl disable dhanman-purchase-test.service
sudo systemctl disable dhanman-sales-test.service
π View logs¶
π View logs all QA services¶
Copy:
sudo journalctl -u dhanman-common-qa.service -f
sudo journalctl -u dhanman-community-qa.service -f
sudo journalctl -u dhanman-document-qa.service -f
sudo journalctl -u dhanman-inventory-qa.service -f
sudo journalctl -u dhanman-payroll-qa.service -f
sudo journalctl -u dhanman-purchase-qa.service -f
sudo journalctl -u dhanman-sales-qa.service -f
π View logs all PROD services¶
Copy:
sudo journalctl -u dhanman-common-prod.service -f
sudo journalctl -u dhanman-community-prod.service -f
sudo journalctl -u dhanman-document-prod.service -f
sudo journalctl -u dhanman-inventory-prod.service -f
sudo journalctl -u dhanman-payroll-prod.service -f
sudo journalctl -u dhanman-purchase-prod.service -f
sudo journalctl -u dhanman-sales-prod.service -f
π View logs all TEST services¶
Copy:
sudo journalctl -u dhanman-common-test.service -f
sudo journalctl -u dhanman-community-test.service -f
sudo journalctl -u dhanman-document-test.service -f
sudo journalctl -u dhanman-inventory-test.service -f
sudo journalctl -u dhanman-payroll-test.service -f
sudo journalctl -u dhanman-purchase-test.service -f
sudo journalctl -u dhanman-sales-test.service -f
π RabbitMQ Docker Debugging & Status Check¶
π 1. List all running containers¶
docker ps
Shows all running containers, including RabbitMQ if active.
π 2. Check all containers (even stopped ones)¶
docker ps -a
Lists all containers including stopped RabbitMQ ones. Useful if the container has exited or crashed.
π³ 3. Start RabbitMQ containers (if stopped)¶
docker start rabbitmq-prod
docker start rabbitmq-qa
Restarts your RabbitMQ production and QA containers if they're not running.
π 4. Check RabbitMQ container status (from host)¶
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
Displays a clean table of container names, their status (
Up,Exited, etc.), and port mappings.
π§ 5. Access RabbitMQ Management UI in browser¶
- Prod: http://your-server-ip:15672
- QA: http://your-server-ip:15673
π Default login:
Username: guest Password: guestNote:
guestuser only works from localhost by default.
π§ͺ 6. Inspect internal RabbitMQ node status¶
docker exec -it rabbitmq-prod rabbitmqctl status
docker exec -it rabbitmq-qa rabbitmqctl status
Executes RabbitMQ CLI command inside the container to show node health, running apps, memory usage, etc.
π¦ 7. List queues inside RabbitMQ node (optional)¶
docker exec -it rabbitmq-prod rabbitmqctl list_queues
docker exec -it rabbitmq-qa rabbitmqctl list_queues
Displays all queues and their message counts.
π 8. Set containers to auto-restart on system reboot¶
docker update --restart unless-stopped rabbitmq-prod
docker update --restart unless-stopped rabbitmq-qa
Ensures RabbitMQ containers auto-start after a server reboot or Docker service restart.
π 9. (Optional) Create a non-guest user for remote login¶
docker exec -it rabbitmq-prod rabbitmqctl add_user admin strongpassword
docker exec -it rabbitmq-prod rabbitmqctl set_user_tags admin administrator
docker exec -it rabbitmq-prod rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
guestcannot log in remotely β use this to create a new admin user for secure remote access.